I guess I had same issue.<div>At first - check your jar and make sure it is there.</div><div>Then make sure you don&#39;t override default Bundle-ClassPath.</div><div>And finally - try to specify full path ([package]/&#39;RuleFile.drl)</div>
<div><br></div><div>Actually I&#39;ve started with placing rule on a local disk and specifying path to it (/home/user/rule.dlr) and then made some debugging.</div><div><br></div><div>Alex <br><br><div class="gmail_quote">
On Thu, Feb 16, 2012 at 12:38 AM, jjmartinez <span dir="ltr">&lt;<a href="mailto:soyelmateo@gmail.com">soyelmateo@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello all,<br>
<br>
I develop an OSGi Drools bundle in Apache Felix. I access to this bundle<br>
with a web service client because I use Apache CXF- DOSGi. Everything is<br>
right here.<br>
<br>
But when I try to run this bunle with my client, I get a<br>
FileNotFoundException when I call to the services that I want to use.<br>
<br>
This is the error trace:<br>
<br>
*java.lang.RuntimeException: java.io.FileNotFoundException: &#39;RuleFile.drl&#39; c<br>
annot be opened because it does not exist<br>
        at<br>
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilde<br>
r.java:544)<br>
        at<br>
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl<br>
.java:28)<br>
        at<br>
drools.services.impl.DroolsServicesImpl.readKnowledgeBase(DroolsServi<br>
cesImpl.java:110)...<br>
*<br>
<br>
The rule file is in the same classpath, and it is inside the .jar file<br>
<br>
Somebody can help me??<br>
<br>
Thanks in advance!!<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Rule-File-Not-Found-in-an-OSGi-environment-tp3749500p3749500.html" target="_blank">http://drools.46999.n3.nabble.com/Rule-File-Not-Found-in-an-OSGi-environment-tp3749500p3749500.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br></div>