There is no ksession called “ksession-rules”, or it can’t find one. Which means your kmodule.xml is incorrectly defined, or cannot be found.
Take the simplest project, copy it. And use that as a starting point, changing the drl files to have the rule content you want and adding your domain classes. Either this one: https://github.com/droolsjbpm/drools/tree/master/drools-examples-api/default-kiesession Or this one: https://github.com/droolsjbpm/drools/tree/master/drools-examples-api/named-kiesession Mark On 31 Jan 2014, at 02:11, kashili <[email protected]> wrote: > I infact looked at the docs and examples and could not reach to conclusion > (because they are aimed at getting started and api details). None of them > show how to convert an existing project into drools (there were bits and > pieces there, which I believe I covered in my question). I did look at my > project under properties->java build path ->libraries and I see drools > library with almost 20 files there; so I am thinking the problem is not > classpath related (may be related to directory structure or kmodule.xml is > not linking the class files with rules file correctly). I am newbie to > drools.. > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Null-pointer-exception-when-adding-drools-to-existing-project-tp4027944p4027947.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
