[rules-users] java.lang.RuntimeException: Cannot find a default KieSession

sdjoe joseph.white at mitchell.com
Fri Jan 3 18:29:24 EST 2014


I am using Drools 6.0.0.FINAL on JBOSS EAP 5.1.2. My code: 	 
                 KieServices ks = KieServices.Factory.get();
	     KieContainer kContainer = ks.getKieClasspathContainer();
	     KieSession kSession = kContainer.newKieSession();
	     kSession.insert(mdxObj);
	     kSession.fireAllRules();
	     
Works fine outside of the JBOSS container. I am deploying this code within a
JAR file that is the main part of my EAR file. I feel as though I have tried
every possible answer I have found on the web for the past two days and this
is my last resort. 

Does anyone have any ideas on what could be the problem?

Thanks,





--
View this message in context: http://drools.46999.n3.nabble.com/java-lang-RuntimeException-Cannot-find-a-default-KieSession-tp4027512.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list