Re: [rules-users] kContainer.newKieSession() fails in Apache Karaf

2014-01-30 Thread jhusby
Mario, Do you know whether the new method Charles added: ks.newKieClasspathContainer(getClass().getClassLoader()); will get merged into the 6.0.x release? I cannot seem to make incremental rule building work in OSGi without it. For instance, even when I run (in Apache Karaf) the example proj

Re: [rules-users] kContainer.newKieSession() fails in Apache Karaf

2014-01-23 Thread Charles Moulliard
Joseph, Concerning the KieSession, here is the response : What is the difference if I create a session on KieContainer vs KieBase (Global, Local List ...) ? there shouldn't be any difference. the possibility of creating a session from a KieContainer is just a shortcut. under the hood it retrieves

Re: [rules-users] kContainer.newKieSession() fails in Apache Karaf

2014-01-23 Thread Charles Moulliard
Hi Joseph, 1. I need to rebuild the rules on the fly, so I was using examples from the IncrementalCompilationTest.java < https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/compiler/integrationtests/IncrementalCompilationTest.java > to accomplish that task.

Re: [rules-users] kContainer.newKieSession() fails in Apache Karaf

2014-01-23 Thread Charles Moulliard
Hi Joseph, My example uses this META-INF/kmodules.xml to create the KieBase On Thu, Jan 23, 2014 at 6:01 PM, jhusby wrote: > I actually looked through your example project yesterday; very helpful!!! > However, there are a few things I'm not sure are compatible with what I'm > trying to do. > >

Re: [rules-users] kContainer.newKieSession() fails in Apache Karaf

2014-01-23 Thread jhusby
I actually looked through your example project yesterday; very helpful!!! However, there are a few things I'm not sure are compatible with what I'm trying to do. 1. I need to rebuild the rules on the fly, so I was using examples from the IncrementalCompilationTest.java

Re: [rules-users] kContainer.newKieSession() fails in Apache Karaf

2014-01-23 Thread Charles Moulliard
Hi Joseph, I propose that you have a look to this example which is currently working on Karaf - https://github.com/cmoulliard/droolsjbpm-osgi-examples (simple = OSGI BundleActivator + KieSession + Drools Rules) Regards, Charles On Thu, Jan 23, 2014 at 4:58 PM, jhusby wrote: > I wasn't subscr

Re: [rules-users] kContainer.newKieSession() fails in Apache Karaf

2014-01-23 Thread jhusby
I wasn't subscribed to the mailing list so I don't think my message below went through. Apologies if it did. jhusby wrote > I'm trying to run Drools in an OSGi container (Apache Karaf 2.3.3 to be > precise). When I try to call newKieSession() on a KieContainer, I get an > exception as follows: