java.lang.RuntimeException: java.io.IOException: Cannot open a foreign URL; this.url=jar:file:/C:/Java%2520Stuff/Glassfish-3.1/glassfish/lib/install/applications/jaxr-ra/jaxr-ra.jar!/META-INF/; foreign.url=jar:file:/C:/Java%2520Stuff/Glassfish-3.1/glassfish/lib/install/applications/jaxr-ra/jaxr-ra.jar!/META-INF/

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by xzvim, 1 year ago
java.io.IOException: Cannot open a foreign URL; this.url=jar:file:/C:/Java%2520Stuff/Glassfish-3.1/glassfish/lib/install/applications/jaxr-ra/jaxr-ra.jar!/META-INF/; foreign.url=jar:file:/C:/Java%2520Stuff/Glassfish-3.1/glassfish/lib/install/applications/jaxr-ra/jaxr-ra.jar!/META-INF/
java.lang.RuntimeException: java.io.IOException: Cannot open a foreign URL; this.url=jar:file:/C:/Java%2520Stuff/Glassfish-3.1/glassfish/lib/install/applications/jaxr-ra/jaxr-ra.jar!/META-INF/; foreign.url=jar:file:/C:/Java%2520Stuff/Glassfish-3.1/glassfish/lib/install/applications/jaxr-ra/jaxr-ra.jar!/META-INF/
at java.net.URL.openConnection(URL.java:945)
at com.sun.jsftemplating.layout.LayoutDefinitionManager.readComponentsFromTaglibXml(LayoutDefinitionManager.java:678)
at com.sun.jsftemplating.layout.LayoutDefinitionManager.getGlobalComponentTypes(LayoutDefinitionManager.java:658)
at com.sun.jsftemplating.layout.LayoutDefinitionManager.getGlobalComponentType(LayoutDefinitionManager.java:754)
at com.sun.jsftemplating.layout.template.TemplateReader.createLayoutComponent(TemplateReader.java:357)
at com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:56)
at com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:318)
at com.sun.jsftemplating.layout.template.TemplateReader.readLayoutDefinition(TemplateReader.java:178)
at com.sun.jsftemplating.layout.template.TemplateReader.read(TemplateReader.java:135)
at com.sun.jsftemplating.layout.template.TemplateLayoutDefinitionManager.getLayoutDefinition(TemplateLayoutDefinitionManager.java:194)
at com.sun.jsftemplating.layout.LayoutDefinitionManager.getLayoutDefinition(LayoutDefinitionManager.java:152)
at com.sun.jsftemplating.layout.ViewRootUtil.getLayoutDefinition(ViewRootUtil.java:257)
at com.sun.jsftemplating.layout.ViewRootUtil.getLayoutDefinition(ViewRootUtil.java:228)
at com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:201)
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:258)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:115)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:338)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1522)
at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:835)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:697)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:499)
at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:470)
at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:360)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)
at org.glassfish.admingui.common.security.AdminConsoleAuthModule.validateRequest(AdminConsoleAuthModule.java:160)
at com.sun.web.security.RealmAdapter.validate(RealmAdapter.java:1302)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:591)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:623)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:824)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:721)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1014)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:220)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:530)
at java.lang.Thread.run(Thread.java:619)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.