0 Replies Latest reply on Aug 26, 2014 12:40 PM by Inoshika Gamage

    "Singleton not set for ModuleClassLoader for Module" exception occurs when a process starts or a task completes

    Inoshika Gamage Newbie

      Even though this exception occurs, the process instance has been started and the first task is assigned to the particular user. However, I cannot complete a task from another jsp page because of this exception. This does not occur for the very first time after restarting the jboss. I am struggling with this for some time. Any help is highly appeciated.

       

      10:00:48,811 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) org.jboss.resteasy.spi.ReaderException: java.lang.IllegalStateException: JBAS016071: Singleton not set for ModuleClassLoader for Module "deployment.Example.war:main" from Service Module Loader. This means that you are trying to access a weld deployment with a Thread Context ClassLoader that is not associated with the deployment.

      10:00:48,820 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.resteasy.client.core.BaseClientResponse.readFrom(BaseClientResponse.java:469)

      10:00:48,823 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:377)

      10:00:48,827 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:350)

      10:00:48,830 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:344)

      10:00:48,834 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.kie.services.client.api.command.AbstractRemoteCommandObject.executeRestCommand(AbstractRemoteCommandObject.java:323)

      10:00:48,838 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.kie.services.client.api.command.AbstractRemoteCommandObject.execute(AbstractRemoteCommandObject.java:110)

      10:00:48,842 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:232)

      10:00:48,846 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jbpm.examples.ejb.ProcessBean.startProcess(ProcessBean.java:72)

      10:00:48,849 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      10:00:48,852 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      10:00:48,855 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      10:00:48,858 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at java.lang.reflect.Method.invoke(Method.java:606)

      10:00:48,861 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)

      10:00:48,866 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      10:00:48,869 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)

      10:00:48,873 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:127)

      10:00:48,876 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:135)

      10:00:48,880 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)

      10:00:48,884 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      10:00:48,887 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

      10:00:48,891 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)

      10:00:48,896 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      10:00:48,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)

      10:00:48,907 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.ejb3.concurrency.ContainerManagedConcurrencyInterceptor.processInvocation(ContainerManagedConcurrencyInterceptor.java:104)

      10:00:48,914 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      10:00:48,920 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:82)

      10:00:48,926 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      10:00:48,929 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

      10:00:48,932 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      10:00:48,936 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

      10:00:48,939 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)

      10:00:48,944 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      10:00:48,948 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.ejb3.component.singleton.SingletonComponentInstanceAssociationInterceptor.processInvocation(SingletonComponentInstanceAssociationInterceptor.java:53)

      10:00:48,953 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      10:00:48,956 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228)

      10:00:48,959 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:304)

      10:00:48,962 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)

      10:00:48,965 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      10:00:48,968 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

      10:00:48,972 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      10:00:48,976 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)

      10:00:48,979 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      10:00:48,982 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

      10:00:48,986 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      10:00:48,989 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)

      10:00:48,993 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      10:00:48,996 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)

      10:00:49,001 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      10:00:49,005 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

      10:00:49,008 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)

      10:00:49,011 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)

      10:00:49,016 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      10:00:49,019 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

      10:00:49,022 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)

      10:00:49,026 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jbpm.examples.ejb.ProcessBean$$$view19.startProcess(Unknown Source)

      10:00:49,029 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jbpm.examples.web.TaskServlet.doGet(TaskServlet.java:51)

      10:00:49,031 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

      10:00:49,034 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

      10:00:49,037 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

      10:00:49,040 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

      10:00:49,044 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)

      10:00:49,048 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

      10:00:49,051 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

      10:00:49,055 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

      10:00:49,058 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

      10:00:49,061 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

      10:00:49,065 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

      10:00:49,068 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      10:00:49,071 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:397)

      10:00:49,074 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      10:00:49,078 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

      10:00:49,081 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

      10:00:49,084 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

      10:00:49,088 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

      10:00:49,090 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at java.lang.Thread.run(Thread.java:724)

      10:00:49,093 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) Caused by: java.lang.IllegalStateException: JBAS016071: Singleton not set for ModuleClassLoader for Module "deployment.Example.war:main" from Service Module Loader. This means that you are trying to access a weld deployment with a Thread Context ClassLoader that is not associated with the deployment.

      10:00:49,101 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.as.weld.services.ModuleGroupSingletonProvider$TCCLSingleton.get(ModuleGroupSingletonProvider.java:75)

      10:00:49,104 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.weld.context.AbstractSharedContext.getBeanStore(AbstractSharedContext.java:51)

      10:00:49,108 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:86)

      10:00:49,111 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:616)

      10:00:49,114 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:681)

      10:00:49,117 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:118)

      10:00:49,120 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:703)

      10:00:49,123 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:712)

      10:00:49,126 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:161)

      10:00:49,130 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)

      10:00:49,133 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:157)

      10:00:49,136 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:131)

      10:00:49,139 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:153)

      10:00:49,143 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.resteasy.cdi.JaxrsInjectionTarget.inject(JaxrsInjectionTarget.java:36)

      10:00:49,146 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:290)

      10:00:49,149 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:107)

      10:00:49,152 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:90)

      10:00:49,155 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79)

      10:00:49,158 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.kie.services.remote.rest.JaxbContextResolver$Proxy$_$$_WeldClientProxy.getContext(JaxbContextResolver$Proxy$_$$_WeldClientProxy.java)

      10:00:49,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBContextFinder.findProvidedJAXBContext(AbstractJAXBContextFinder.java:76)

      10:00:49,168 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.resteasy.plugins.providers.jaxb.XmlJAXBContextFinder.findCachedContext(XmlJAXBContextFinder.java:36)

      10:00:49,172 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBProvider.findJAXBContext(AbstractJAXBProvider.java:69)

      10:00:49,176 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBProvider.readFrom(AbstractJAXBProvider.java:112)

      10:00:49,180 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.resteasy.core.interception.MessageBodyReaderContextImpl.proceed(MessageBodyReaderContextImpl.java:105)

      10:00:49,184 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.resteasy.plugins.interceptors.encoding.GZIPDecodingInterceptor.read(GZIPDecodingInterceptor.java:61)

      10:00:49,188 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.resteasy.core.interception.MessageBodyReaderContextImpl.proceed(MessageBodyReaderContextImpl.java:108)

      10:00:49,192 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at org.jboss.resteasy.client.core.BaseClientResponse.readFrom(BaseClientResponse.java:433)