It has to be a maven project, it needs to find pom.properties. Or atleast the project you
are building must obey maven conventions of including a pom.properties in the correct
location; even if it’s not built by maven. Versioning is now “built in” as standard, via
the maven conventions.
https://github.com/droolsjbpm/drools/tree/master/drools-examples-api/
http://blog.athico.com/2013/10/configuration-and-convention-based.html
Mark
On 15 Nov 2013, at 16:21, captainrhino <graeme.kitchen(a)axa-travel-insurance.com>
wrote:
I have a non maven project which I think I have included all the relevant
dependencies manually into
I run the following code
KieServices ks = KieServices.Factory.get();
KieContainer kContainer = ks.getKieClasspathContainer();
KieBase kieBase = kContainer.getKieBase();
StatelessKieSession session = kContainer.newStatelessKieSession();
session.execute("test");
and get the following error message. Is there anything obvious anyone can
suggest? kmodule.xml is in a META_INF folder on the classpath.
SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory]
15-Nov-2013 16:12:41
org.drools.compiler.kie.builder.impl.ClasspathKieProject discoverKieModules
INFO: Found kmodule:
file:/C:/eclipse%20workspace/Sales/build/classes/META-INF/kmodule.xml
15-Nov-2013 16:12:41
org.drools.compiler.kie.builder.impl.ClasspathKieProject getPomProperties
WARNING: Unable to load pom.properties tried recursing down from/eclipse
workspace/Sales/build/classes
null
15-Nov-2013 16:12:41
org.drools.compiler.kie.builder.impl.ClasspathKieProject discoverKieModules
SEVERE: Unable to build index of kmodule.xml
url=file:/C:/eclipse%20workspace/Sales/build/classes/META-INF/kmodule.xml
null
Exception in thread "main" java.lang.RuntimeException: Cannot find a default
KieBase
at
org.drools.compiler.kie.builder.impl.KieContainerImpl.getKieBase(KieContainerImpl.java:160)
at com.axa.travel.drools.DroolsSalesTest.go(DroolsSalesTest.java:82)
at com.axa.travel.drools.DroolsSalesTest.main(DroolsSalesTest.java:26)l
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-6-Unable-to-build-index-of-kmodu...
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