Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-3918

Classloader problems using BPMS with JBoss EAP bpms static modules layer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 6.0.0
    • 6.0.0
    • jBPM Core
    • None
    • All All

      Description of problem:

      When using the BPMS webapp with EAP static modules distribution, the second time that user tries to build&deploy a process fails.

      Version-Release number of selected component (if applicable):

      6.0.0-SNAPSHOT/6.1.1-SNAPSHOT

      How reproducible:

      Deploy the BPMS webapplication using the eap modules distribution. Try to build&deploy a process several times.

      Steps to Reproduce:
      1. Buid the BPMS - EAP modules distribution (kie-wb-distribution/kie-eap-integration)

      2. Deploy the generated bpms static layer and the bpms war into a clean EAP installation

      3. Run EAP

      4. Go to project authoring

      5. Open project editor

      6. Click on "Build&deploy" -> it should be successful

      7. Click on "Build&deploy" another time -> it fails

      Actual results:

      This is the relevant part of the exception:

      13:43:28,338 ERROR [stderr] (http-localhost/127.0.0.1:8080-4) java.lang.IllegalStateException: JBAS016071: Singleton not set for ModuleClassLoader for Module "org.jbpm:main" from local module loader @21d73ff5 (finder: local module finder @3aa7ff2e (roots: /home/romartin/development/temp/modules/EAP-6.1.1/jboss-eap-6.1/modules,/home/romartin/development/temp/modules/EAP-6.1.1/jboss-eap-6.1/modules/system/layers/bpms,/home/romartin/development/temp/modules/EAP-6.1.1/jboss-eap-6.1/modules/system/layers/base)). This means that you are trying to access a weld deployment with a Thread Context ClassLoader that is not associated with the deployment.
      13:43:28,339 ERROR [stderr] (http-localhost/127.0.0.1:8080-4) at org.jboss.as.weld.services.ModuleGroupSingletonProvider$TCCLSingleton.get(ModuleGroupSingletonProvider.java:76)
      13:43:28,339 ERROR [stderr] (http-localhost/127.0.0.1:8080-4) at org.jboss.weld.Container.instance(Container.java:54)
      13:43:28,339 ERROR [stderr] (http-localhost/127.0.0.1:8080-4) at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:67)
      13:43:28,340 ERROR [stderr] (http-localhost/127.0.0.1:8080-4) at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79)
      13:43:28,340 ERROR [stderr] (http-localhost/127.0.0.1:8080-4) at org.jbpm.kie.services.impl.bpmn2.DataServiceItemDefinitionHandler$Proxy$$$_WeldClientProxy.getValidParents(DataServiceItemDefinitionHandler$Proxy$$$_WeldClientProxy.java)
      13:43:28,340 ERROR [stderr] (http-localhost/127.0.0.1:8080-4) at org.drools.core.xml.ExtensibleXmlParser.validate

      Expected results:

      Build & Deploy successful.
      Additional info:

            romartin@redhat.com Roger Martinez
            romartin@redhat.com Roger Martinez
            Marek Baluch Marek Baluch
            Marek Baluch Marek Baluch
            Kris Verlaenen, Pedro Zapata Fernandez, Rajesh Rajasekaran
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: