tomcat7 - Unable to Execute Drools Programme in Tomcat 7 -
i have written drools , caller programme , have junit works fine. when deploy tomcat 7 run application find issue shown below:-
exception in thread "pool-7-thread-1" java.lang.nosuchmethoderror: com.thoughtworks.xstream.xstream.fromxml(ljava/net/url;)ljava/lang/ object; @ org.drools.compiler.kproject.models.kiemodulemodelimpl$kmodulemarshaller.fromxml(kiemodulemodelimpl.java:190) @ org.drools.compiler.kproject.models.kiemodulemodelimpl.fromxml(kiemodulemodelimpl.java:139) @ org.drools.compiler.kie.builder.impl.classpathkieproject.fetchkmodule(classpathkieproject.java:163) @ org.drools.compiler.kie.builder.impl.classpathkieproject.fetchkmodule(classpathkieproject.java:125) @ org.drools.compiler.kie.builder.impl.classpathkieproject.discoverkiemodules(classpathkieproject.java:96) @ org.drools.compiler.kie.builder.impl.classpathkieproject.init(classpathkieproject.java:68) @ org.drools.compiler.kie.builder.impl.kiecontainerimpl.(kiecontainerimpl.java:83) @ org.drools.compiler.kie.builder.impl.kieservicesimpl.newkieclasspathcontainer(kieservicesimpl.java:85) @ org.drools.compiler.kie.builder.impl.kieservicesimpl.getkieclasspathcontainer(kieservicesimpl.java:68) @ com.hm.msp.rules.service.droolsruleloader.loadrules(droolsruleloader.java:35) @ com.hm.msp.workflow.service.task.temperaturetasks.execute(temperaturetasks.java:40) @ com.hm.msp.workflow.service.flow.workflowservicecommunicator.executeeachofitstasks(workflowservicecommunicator.java:90) @ com.hm.msp.workflow.service.flow.workflowservicecommunicator.execute(workflowservicecommunicator.java:65) @ com.hm.msp.controller.service.taskexecutor.run(taskexecutor.java:22) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) @ java.lang.thread.run(thread.java:745)
please assist
the simple solutions in although drools pom contains xstream jar, still have declare in pom xstream.
the dependency should
<dependency> <groupid>com.thoughtworks.xstream</groupid> <artifactid>xstream</artifactid> <version>1.4.7</version> </dependency>
tomcat7 drools
No comments:
Post a Comment