I am trying to adapt drools6.0 for an existing code base (it is maven project under eclipse). I didnt had need to learn drools or maven before (though they were part of my p
I think there is a much simpler answer ... I stumbled upon this just today as I was attempting the very same thing and got it working after following a clue in the discussion lists:
I was Trying to get Drools to execute from Spring MVC WEB in Pure Maven Project (no added natures of any kind) and ran head first into this problem:
ERROR KieContainerImpl - Unknown KieSession name: ksession-rules
Initial RND: (some direction - but no solutions)
Unknown KieSession name in drools 6.0 (while trying to add drools to existing maven/eclipse project) http://drools.46999.n3.nabble.com/Null-pointer-exception-when-adding-drools-to-existing-project-td4027944.html#a4028011
Related Problem (... but a big clue):
WARN ClasspathKieProject - Unable to load pom.properties tried recursing down from/Apache-Tomcat7/webapps/maven-spring-drools/WEB-INF/classes
SOLUTION:
As it turns out, creating the directory WEB-INF/classes and placing the files pom.properties and pom.xml in it solves the problem. The clue came from this link: http://drools.46999.n3.nabble.com/Drools-6-Unable-to-build-index-of-kmodule-xml-td4026791.html - where Mark Proctor indicated that the project has to be a maven project, and it needs to find pom.properties.
As soon as the KIE finds the pom.properties file, it figures out the KieSession name and the problem is solved.
Note: I'd suspect you'd have to manually keep that POM.XML file updated but the pom.properties file never changes.
This has been my experience - hope it helps someone....