Hello,
I am running JBoss 5.1.0 GA with drools 5.1.1 (added run-time libraries).
I have several DRL files which resides outside my EAR in a 'rules'
directory.
When the EAR loads, I am loading the DRLs using:
*KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();*
*for(...) {*
* kbuilder.add(ResourceFactory.newFileResource(file), ResourceType.DRL);
*
}
That works fine.
When I do redeploy of the EAR, this code passed successfully, but the rules
won't run anymore.
When I switch to drools 5.0.1 run-time libraries, it returns to work.
I need to work with 5.1.1 since I use some of the new features.
I found an old post that was answered by Mark Proctor suggesting to use a
single drools-all.jar:
http://markmail.org/message/6yzc7c6ejdn6iekc#query:drools%20classloader%2...
unfortunately, I could find such file in the 5.1.1 release.
Other ideas that was tested and failed: 1. Tell Tomcat not to lock
resources (configuration properties in context.xml) 2. Put all drools 5.1.1
jars and dependencies in the lib
Any suggestion how to solve this issue?
Thanks,
Amit