Erez, is it possible that the change of packaging is removing the file from
the classpath ?
On Thu, Nov 21, 2013 at 8:20 PM, Erez Zarini <zerez(a)il.ibm.com> wrote:
Hi,
I am new to Drools.
I have successfully created a project from the Examples provided at the
site
using Java APP project.
but when trying to move it as a Dynamic Web Project in Eclipse I get the
following Exception:
(the files kmodule and pom.xml resides in all subfolders of the project)
21/11/2013 15:49:42
org.drools.compiler.kie.builder.impl.ClasspathKieProject
discoverKieModules
INFO: Found kmodule:
file:/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/DecisionTableGvia/WEB-INF/classes/META-INF/kmodule.xml
21/11/2013 15:49:43
org.drools.compiler.kie.builder.impl.ClasspathKieProject
getPomProperties
WARNING: Unable to load pom.properties tried recursing down
from/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/DecisionTableGvia/WEB-INF/classes
null
21/11/2013 15:49:43
org.drools.compiler.kie.builder.impl.ClasspathKieProject
discoverKieModules
SEVERE: Unable to build index of kmodule.xml
url=file:/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/DecisionTableGvia/WEB-INF/classes/META-INF/kmodule.xml
null
[]
21/11/2013 15:49:43 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet getDecisionGvia threw exception
java.lang.NullPointerException
at
org.drools.compiler.kie.builder.impl.KieContainerImpl.newStatelessKieSession(KieContainerImpl.java:360)
at
org.drools.compiler.kie.builder.impl.KieContainerImpl.newStatelessKieSession(KieContainerImpl.java:351)
at
gvia.PricingRuleDTExample.executeExample(PricingRuleDTExample.java:39)
at gvia.PricingRuleDTExample.main(PricingRuleDTExample.java:32)
at gvia.getDecisionGvia.doGet(getDecisionGvia.java:33)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Unknown Source)
when running as a Java project (not Java EE) it seems to work find and
continues to find pom.xml instead of pom.properties.
any ideas?
--
View this message in context:
http://drools.46999.n3.nabble.com/using-Drools-in-Tomcat-6-0-enviourment-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users