java.io.IOException: Cannot open a foreign URL; this.url=jar:file:/home/inc/develop/glassfishv3/glassfish/domains/domain1/applications/jevera-smpp-jca/ehcache-terracotta-2.4.1.jar!/META-INF/terracotta/TIMs/tim-ehcache-2.x-1.7.0.jar; foreign.url=jar:file:/home/inc/develop/glassfishv3/glassfish/domains/domain1/applications/jevera-smpp-jca/ehcache-terracotta-2.4.1.jar!/META-INF/terracotta/TIMs/tim-ehcache-2.x-1.7.0.jar

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 Terracotta by gavaec, 1 year ago
Cannot open a foreign URL; this.url=jar:file:/home/inc/develop/glassfishv3/glassfish/domains/domain1/applications/jevera-smpp-jca/ehcache-terracotta-2.4.1.jar!/META-INF/terracotta/TIMs/tim-ehcache-2.x-1.7.0.jar; foreign.url=jar:file:/home/inc
via Oracle Community by xzvim, 1 year ago
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.io.IOException: Cannot open a foreign URL; this.url=jar:file:/home/inc/develop/glassfishv3/glassfish/domains/domain1/applications/jevera-smpp-jca/ehcache-terracotta-2.4.1.jar!/META-INF/terracotta/TIMs/tim-ehcache-2.x-1.7.0.jar; foreign.url=jar:file:/home/inc/develop/glassfishv3/glassfish/domains/domain1/applications/jevera-smpp-jca/ehcache-terracotta-2.4.1.jar!/META-INF/terracotta/TIMs/tim-ehcache-2.x-1.7.0.jar
at java.net.URL.openConnection(URL.java:945)
at java.net.URL.openStream(URL.java:1010)
at org.terracotta.express.loader.Jar.inflateIfNeeded(Jar.java:135)
at org.terracotta.express.loader.Jar.touch(Jar.java:91)
at org.terracotta.express.loader.Jar.contents(Jar.java:109)
at org.terracotta.express.loader.Handler.openConnection(Handler.java:51)
at java.net.URL.openConnection(URL.java:945)
at java.net.URL.openStream(URL.java:1010)
at com.tc.bundles.KnopflerfishOSGi.installBundle(KnopflerfishOSGi.java:205)
at com.tc.bundles.KnopflerfishOSGi.installBundles(KnopflerfishOSGi.java:73)
at com.tc.plugins.ModulesLoader.installAndStartBundles(ModulesLoader.java:198)
at com.tc.object.bytecode.hook.impl.DSOContextImpl.addModules(DSOContextImpl.java:402)
at com.tc.object.bytecode.hook.impl.DSOContextImpl.createStandaloneContext(DSOContextImpl.java:171)
at org.terracotta.express.StandaloneL1Boot.call(StandaloneL1Boot.java:188)
at org.terracotta.express.ClientImpl.(ClientImpl.java:300)
at org.terracotta.express.ClientFactoryImpl.newClient(ClientFactoryImpl.java:192)
at org.terracotta.express.ClientFactoryImpl.createClient(ClientFactoryImpl.java:186)
at org.terracotta.express.ClientFactoryImpl.createClient(ClientFactoryImpl.java:173)
at org.terracotta.express.ClientFactoryImpl.getOrCreateClient(ClientFactoryImpl.java:151)
at org.terracotta.express.ClientFactory.getOrCreateClient(ClientFactory.java:28)
at net.sf.ehcache.terracotta.StandaloneTerracottaClusteredInstanceFactory.(StandaloneTerracottaClusteredInstanceFactory.java:37)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at net.sf.ehcache.util.ClassLoaderUtil.createNewInstance(ClassLoaderUtil.java:92)
at net.sf.ehcache.terracotta.TerracottaClusteredInstanceHelper.newClusteredInstanceFactory(TerracottaClusteredInstanceHelper.java:178)
at net.sf.ehcache.terracotta.TerracottaClient.createNewClusteredInstanceFactory(TerracottaClient.java:177)
at net.sf.ehcache.terracotta.TerracottaClient.createClusteredInstanceFactory(TerracottaClient.java:137)
at net.sf.ehcache.CacheManager.init(CacheManager.java:337)
at net.sf.ehcache.CacheManager.(CacheManager.java:265)
at net.sf.ehcache.CacheManager.create(CacheManager.java:763)
at com.jevera.smpp.jca.SmppResourceAdapter.start(SmppResourceAdapter.java:68)
at com.sun.enterprise.connectors.ActiveOutboundResourceAdapter.startResourceAdapter(ActiveOutboundResourceAdapter.java:183)
at com.sun.enterprise.connectors.ActiveOutboundResourceAdapter.init(ActiveOutboundResourceAdapter.java:130)
at com.sun.enterprise.connectors.ActiveRAFactory.instantiateActiveResourceAdapter(ActiveRAFactory.java:130)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:101)
at com.sun.enterprise.connectors.service.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:216)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:334)
at com.sun.enterprise.connectors.module.ConnectorDeployer.load(ConnectorDeployer.java:174)
at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:175)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
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:330)
at java.lang.Thread.run(Thread.java:662)

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.