Hi,

 

I’m evaluating Drools 5.0 for use in a WebSphere 6.1.0.13 (Java 1.5 JRE) environment, and I’ve encountered an exception that I can’t seem to fix. I downloaded the Drools examples and started looking at the HelloWorldExample class. First I executed it on standalone IBM JVM (not in a servlet container), and it worked just fine.

 

Then I created a simple web app and modified the HelloWorldExample to allow it to be called from a servlet. I copied the Drools JARs to my WEB-INF/lib folder, and I set the classloader mode to PARENT_LAST to ensure my JARs would be picked up before those on the app server. When executed in this environment the HelloWorldExample fails with this exception:

 

 

[9/25/09 16:16:23:351 EDT] 00000021 SystemErr     R org.drools.runtime.rule.ConsequenceException: [Error: System.out.println( message ): Class org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer can not access a member of class com.ibm.ejs.ras.SystemStream with modifiers "public"]

[Near : {... Unknown ....}]

             ^

[Line: 1, Column: 0]

 

 

The line of code that triggers this exception is “ksession.fireAllRules()” where “ksession” is an instance of  StatefulKnowledgeSession. Does anyone know how to solve this problem?

 

 

 

----------------------------------------- This e-mail and any attachments may contain CONFIDENTIAL information, including PROTECTED HEALTH INFORMATION. If you are not the intended recipient, any use or disclosure of this information is STRICTLY PROHIBITED; you are requested to delete this e-mail and any attachments, notify the sender immediately, and notify the LabCorp Privacy Officer at privacyofficer@labcorp.com or call (877) 23-HIPAA.