Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Launch equinox in Tomcat 7 using servletbridge raises IllegalStateException
Launch equinox in Tomcat 7 using servletbridge raises IllegalStateException [message #1122095] Tue, 01 October 2013 08:21 Go to next message
Marco Descher is currently offline Marco DescherFriend
Messages: 107
Registered: October 2010
Location: Austria
Senior Member
The following exception is thrown in catalina.out, when trying to run a RAP as war within tomcat; I found out about https://bugs.eclipse.org/bugs/show_bug.cgi?id=303842 which is related to this, yet talking about a circularity exception, while the file could not be loaded in my case.

Im working with the current downloadable versions of Eclipse, Tomcat 7 etc. any hints?

Oct 01, 2013 10:04:16 AM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already.  Could not load org.eclipse.osgi.framework.internal.protocol.file.Handler.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1597)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
	at org.eclipse.equinox.servletbridge.FrameworkLauncher$ChildFirstURLClassLoader.loadClass(FrameworkLauncher.java:1025)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:190)
	at org.eclipse.osgi.framework.util.SecureAction.forName(SecureAction.java:413)
	at org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactory.getBuiltIn(StreamHandlerFactory.java:83)
	at org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactory.createInternalURLStreamHandler(StreamHandlerFactory.java:153)
	at org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactory.findAuthorizedURLStreamHandler(StreamHandlerFactory.java:205)
	at org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactory.createURLStreamHandler(StreamHandlerFactory.java:114)
	at java.net.URL.getURLStreamHandler(URL.java:1150)
	at java.net.URL.<init>(URL.java:590)
	at java.net.URL.<init>(URL.java:482)
	at java.net.URL.<init>(URL.java:431)
	at java.net.JarURLConnection.parseSpecs(JarURLConnection.java:179)
	at java.net.JarURLConnection.<init>(JarURLConnection.java:162)
	at org.eclipse.equinox.servletbridge.CloseableURLClassLoader$CloseableJarURLConnection.<init>(CloseableURLClassLoader.java:57)
	at org.eclipse.equinox.servletbridge.CloseableURLClassLoader$CloseableJarURLStreamHandler.openConnection(CloseableURLClassLoader.java:99)
	at java.net.URL.openConnection(URL.java:971)
	at org.eclipse.equinox.servletbridge.CloseableURLClassLoader.defineClass(CloseableURLClassLoader.java:289)
	at org.eclipse.equinox.servletbridge.CloseableURLClassLoader$1.run(CloseableURLClassLoader.java:271)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.equinox.servletbridge.CloseableURLClassLoader.findClass(CloseableURLClassLoader.java:254)
	at org.eclipse.equinox.servletbridge.FrameworkLauncher$ChildFirstURLClassLoader.loadClass(FrameworkLauncher.java:1021)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.eclipse.osgi.framework.internal.core.Framework.installContentHandlerFactory(Framework.java:1665)
	at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:234)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:263)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.eclipse.equinox.servletbridge.FrameworkLauncher.start(FrameworkLauncher.java:410)
	at org.eclipse.equinox.servletbridge.BridgeServlet.init(BridgeServlet.java:83)
	at javax.servlet.GenericServlet.init(GenericServlet.java:160)
	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5026)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5313)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:537)
	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1468)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1436)
	at org.apache.catalina.manager.HTMLManagerServlet.upload(HTMLManagerServlet.java:301)
	at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:208)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
	at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:724)

Re: Launch equinox in Tomcat 7 using servletbridge raises IllegalStateException [message #1122099 is a reply to message #1122095] Tue, 01 October 2013 08:23 Go to previous message
Marco Descher is currently offline Marco DescherFriend
Messages: 107
Registered: October 2010
Location: Austria
Senior Member
It happens for both
Could not load org.eclipse.osgi.framework.internal.protocol.jar.Handler
and
Could not load org.eclipse.osgi.framework.internal.protocol.file.Handler
in a row. There is no security manager running (Debian 7 default installation)

[Updated on: Tue, 01 October 2013 08:24]

Report message to a moderator

Previous Topic:How to build content of rt.equinox.bundles.git with maven?
Next Topic:non-deterministic p2 configuration generation on first start
Goto Forum:
  


Current Time: Wed Nov 26 11:39:32 GMT 2014

Powered by FUDForum. Page generated in 0.02108 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software