[rules-users] Rule File Not Found in an OSGi environment

jjmartinez soyelmateo at gmail.com
Thu Feb 16 03:38:18 EST 2012


Hello all, 

I develop an OSGi Drools bundle in Apache Felix. I access to this bundle
with a web service client because I use Apache CXF- DOSGi. Everything is
right here.

But when I try to run this bunle with my client, I get a
FileNotFoundException when I call to the services that I want to use.

This is the error trace:

*java.lang.RuntimeException: java.io.FileNotFoundException: 'RuleFile.drl' c
annot be opened because it does not exist
        at
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilde
r.java:544)
        at
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl
.java:28)
        at
drools.services.impl.DroolsServicesImpl.readKnowledgeBase(DroolsServi
cesImpl.java:110)...
*

The rule file is in the same classpath, and it is inside the .jar file

Somebody can help me??

Thanks in advance!!

--
View this message in context: http://drools.46999.n3.nabble.com/Rule-File-Not-Found-in-an-OSGi-environment-tp3749500p3749500.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list