<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1">Hi,<br>
<br>
today i started to setup Drools 6 in my OSGi container. But it
seems there are some issues that do not allow to run drools 6 (and
jbpm) under OSGi properly.<br>
<br>
For instance:<br>
JPAKnowledgeService<br>
.newStatefulKnowledgeSession(kieBase, null, env);<br>
will never find
"org.drools.persistence.jpa.KnowledgeStoreServiceImpl" since it is
not in the scope of the current ClassLoader.<br>
<br>
Tried to tie things up, but then there would be a cyclic
dependency between kie-internal and jbpm-persistence-jpa.<br>
<br>
I also could see, that a ProjectClassLoader was added. I found a
way to put my current BundleClassLoader as its parent into play.
This solves a lot of class loading issues.<br>
<br>
<br>
For me it seems, that Drools 6 was not designed to run in an OSGi
container. Is there ongoing work to integrate Drools and JBPM V</font><font
size="-1"><font size="-1">ersion 6.x</font> into OSGi environments
properly?<br>
<br>
</font>
<pre class="moz-signature" cols="72">--
Thanks for your answer
Florian Pirchner
</pre>
</body>
</html>