The Drools runtime in SOA-P 5.0 distribution is located at:
/jboss-as/server/default/deploy/jbrules.esb
This could be added to JBT as a Drools runtime, but executing on this runtime fails:
java.lang.NoClassDefFoundError: org/mvel2/integration/VariableResolverFactory
at org.drools.rule.builder.dialect.java.JavaDialect.<clinit>(JavaDialect.java:98)
at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.newDialect(JavaDialectConfiguration.java:65)
at org.drools.compiler.PackageBuilderConfiguration.buildDialectRegistry(PackageBuilderConfiguration.java:291)
at org.drools.compiler.PackageRegistry.<init>(PackageRegistry.java:24)
at org.drools.compiler.PackageBuilder.newPackage(PackageBuilder.java:874)
at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:592)
at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:290)
at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:488)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:25)
at com.sample.DroolsTest.readKnowledgeBase(DroolsTest.java:40)
at com.sample.DroolsTest.main(DroolsTest.java:23)
Caused by: java.lang.ClassNotFoundException: org.mvel2.integration.VariableResolverFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 11 more
Steps to reproduce:
1) Setup Drools runtime pointing to ${SOA-P 5.0}/jboss-as/server/default/deploy/jbrules.esb
2) Create Drools project
3) Right-Click on DroolsTest.java, choose Run As -> Java Application
- blocks
-
JBIDE-5896 Update Drools plugin to newer version
- Resolved