tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jessepeng <jan_p...@gmx.de>
Subject IllegalAccess exception when reloading TomEE+ 7.0.1 using Apache Camel 2.18.0
Date Fri, 11 Nov 2016 12:48:23 GMT
Hi everyone,

we're using TomEE+ 7.0.1 and Apache Camel 2.18.0 for sending and receiving
JMS messages for our webservices. Setting up the routes works fine, but when
I try to reload TomEE, I get the following exception:

java.lang.IllegalStateException: Illegal access: this web application
instance has been stopped already. Could not load
[org.apache.camel.impl.DefaultShutdownStrategy$1].

The stack trace is as follows:
	at
org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1302)
	at
org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1290)
	at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1155)
	at
org.apache.tomee.catalina.TomEEWebappClassLoader.loadClass(TomEEWebappClassLoader.java:201)
	at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1116)
	at
org.apache.camel.impl.DefaultShutdownStrategy.doShutdown(DefaultShutdownStrategy.java:184)
	at
org.apache.camel.impl.DefaultShutdownStrategy.shutdownForced(DefaultShutdownStrategy.java:146)
	at
org.apache.camel.impl.DefaultCamelContext.doStop(DefaultCamelContext.java:3175)
	at org.apache.camel.support.ServiceSupport.stop(ServiceSupport.java:102)
	at
org.apache.camel.cdi.CamelContextProducer.dispose(CamelContextProducer.java:108)
	at
org.apache.camel.cdi.CamelContextProducer.dispose(CamelContextProducer.java:48)
	at org.apache.camel.cdi.DelegateProducer.dispose(DelegateProducer.java:39)
	at
org.apache.camel.cdi.CamelContextInjectionTarget.preDestroy(CamelContextInjectionTarget.java:33)
	at
org.apache.camel.cdi.CamelContextInjectionTarget.preDestroy(CamelContextInjectionTarget.java:24)
	at org.apache.camel.cdi.SyntheticBean.destroy(SyntheticBean.java:69)
	at
org.apache.webbeans.component.third.ThirdpartyBeanImpl.destroy(ThirdpartyBeanImpl.java:114)
	at
org.apache.webbeans.context.AbstractContext.destroyInstance(AbstractContext.java:206)
	at
org.apache.webbeans.context.AbstractContext.destroyInstance(AbstractContext.java:192)
	at
org.apache.webbeans.context.ApplicationContext.destroy(ApplicationContext.java:73)
	at
org.apache.webbeans.web.context.WebContextsService.destroyApplicationContext(WebContextsService.java:619)
	at
org.apache.webbeans.web.context.WebContextsService.endContext(WebContextsService.java:231)
	at
org.apache.openejb.cdi.OpenEJBLifecycle.stopApplication(OpenEJBLifecycle.java:287)
	at
org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:2128)
	at
org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:2079)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.afterStop(TomcatWebAppBuilder.java:2012)
	at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:126)
	at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
	at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:249)
	at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:3764)
	at
org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:293)
	at
org.apache.tomee.catalina.TomEEWebappLoader.backgroundProcess(TomEEWebappLoader.java:59)
	at
org.apache.tomee.catalina.LazyStopLoader.backgroundProcess(LazyStopLoader.java:105)
	at
org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5534)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1374)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1378)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1378)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1346)
	at java.lang.Thread.run(Thread.java:745)

I'm not completely sure what this means, but it seems like shutdown of the
camel routes happens too late (after the web application instance is already
shut down). Any ideas on this?

Kind regards,
Jan-Christopher Pien



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/IllegalAccess-exception-when-reloading-TomEE-7-0-1-using-Apache-Camel-2-18-0-tp4680514.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Mime
View raw message