3 Replies Latest reply on Feb 11, 2013 2:45 PM by Rocky T

    Not able to create KnowledgeBuilder..please help jbpm 5.4

    Rocky T Newbie

      Hi All,


      I am trying to develop simple web application.where i am just clicking on a submit button to start the process.But its failing.Here is the error

      I have attached war file and server logs as well


      Class which is trying to create this KnowledgeBase is :-KBaseService.java

      Does anyone know how t resolve this?




      17:00:50,746 WARN  [org.jboss.modules] (http-localhost-127.0.0.1-8080-2) Failed to define class org.drools.rule.builder.MVELConstraintBuilder$StringCoercionCompatibilityEvaluator in Module "deployment.aots.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/drools/rule/builder/MVELConstraintBuilder$StringCoercionCompatibilityEvaluator (Module "deployment.aots.war:main" from Service Module Loader)

          at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396)

          at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243)

          at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)

          at org.jboss.modules.Module.loadModuleClass(Module.java:517)

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

          at org.drools.rule.builder.MVELConstraintBuilder.<clinit>(MVELConstraintBuilder.java:48) [drools-compiler-5.5.0.Final.jar:5.5.0.Final]

          at org.drools.rule.builder.DefaultConstraintBuilderFactory.<clinit>(DefaultConstraintBuilderFactory.java:6) [drools-compiler-5.5.0.Final.jar:5.5.0.Final]

          at org.drools.rule.builder.DroolsCompilerComponentFactory.<init>(DroolsCompilerComponentFactory.java:11) [drools-compiler-5.5.0.Final.jar:5.5.0.Final]

          at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:210) [drools-compiler-5.5.0.Final.jar:5.5.0.Final]

          at org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:170) [drools-compiler-5.5.0.Final.jar:5.5.0.Final]

          at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:300) [drools-compiler-5.5.0.Final.jar:5.5.0.Final]

          at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:228) [drools-compiler-5.5.0.Final.jar:5.5.0.Final]

          at org.drools.builder.impl.KnowledgeBuilderFactoryServiceImpl.newKnowledgeBuilder(KnowledgeBuilderFactoryServiceImpl.java:34) [drools-compiler-5.5.0.Final.jar:5.5.0.Final]

          at org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilder(KnowledgeBuilderFactory.java:46) [knowledge-api-5.5.0.Final.jar:5.5.0.Final]

          at com.sample.processserver.KBaseService.readKnowledgeBase(KBaseService.java:44) [classes:]

          at com.sample.processserver.KBaseService.getKnowlegdeBase(KBaseService.java:22) [classes:]

          at com.sample.processserver.TaskProcessServlet.startMyProcess(TaskProcessServlet.java:58) [classes:]

          at com.sample.processserver.TaskProcessServlet.doGet(TaskProcessServlet.java:35) [classes:]

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

          at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]

      Caused by: java.lang.NoClassDefFoundError: org/mvel2/util/CompatibilityStrategy$DefaultCompatibilityEvaluator

          at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_31]

          at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_31]

          at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_31]

          at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_31]

          at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)

          at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)

          ... 38 more

      Caused by: java.lang.ClassNotFoundException: org.mvel2.util.CompatibilityStrategy$DefaultCompatibilityEvaluator from [Module "deployment.aots.war:main" from Service Module Loader]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

          ... 44 more

       

      17:00:50,840 ERROR [stderr] (http-localhost-127.0.0.1-8080-2) java.lang.NoClassDefFoundError: org/drools/rule/builder/MVELConstraintBuilder$StringCoercionCompatibilityEvaluator