[jboss-jira] [JBoss JIRA] (DROOLS-3991) java.lang.IllegalStateException: There's already another KieContainer created from a different ClassLoader
Anuradha Prabhala (Jira)
issues at jboss.org
Fri May 10 00:51:00 EDT 2019
[ https://issues.jboss.org/browse/DROOLS-3991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13731754#comment-13731754 ]
Anuradha Prabhala commented on DROOLS-3991:
-------------------------------------------
This error happens at Line No 107 of KieServicesImpl.java. The drools system is always using the same KieServicesImpl.java instance.
Basically if one web project started a Kie Container based on it's class path, as the same KieServicesImpl instance is being used, it always dectects that a Kie Container is already created previously, when a second web application is trying to use drools system
> java.lang.IllegalStateException: There's already another KieContainer created from a different ClassLoader
> ----------------------------------------------------------------------------------------------------------
>
> Key: DROOLS-3991
> URL: https://issues.jboss.org/browse/DROOLS-3991
> Project: Drools
> Issue Type: Bug
> Components: kie server
> Affects Versions: 7.15.0.Final
> Reporter: Anuradha Prabhala
> Assignee: Maciej Swiderski
> Priority: Critical
>
> 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)
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list