Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-3991

java.lang.IllegalStateException: There's already another KieContainer created from a different ClassLoader

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • None
    • 7.15.0.Final
    • kie server
    • None
    • NEW
    • NEW

    Description

      I deployed 2 war files in wildfly 14. Both of them are drools projects that are trying to execute some rules. The problem is that only one of the war file is able to execute drools rule. The other fails with the below Internal Server Error:

      Caused by: java.lang.IllegalStateException: There's already another KieContainer created from a different ClassLoader
      at org.drools.compiler.kie.builder.impl.KieServicesImpl.getKieClasspathContainer(KieServicesImpl.java:107)
      at org.drools.compiler.kie.builder.impl.KieServicesImpl.getKieClasspathContainer(KieServicesImpl.java:79)
      at org.drools.examples.helloworld.HelloWorldExample.drools(HelloWorldExample.java:49)
      at com.sample.rest.MessageRestService.Testdrools(MessageRestService.java:26)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      Attachments

        Activity

          People

            swiderski.maciej Maciej Swiderski (Inactive)
            prabhala Anuradha Prabhala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: