Hello Alexander,
Thanks for your response, I'm going to try it.
2012/2/16 Alexander Filipchik <afilipchik(a)gmail.com>
I guess I had same issue.
At first - check your jar and make sure it is there.
This is ok.
Then make sure you don't override default Bundle-ClassPath.
I'm not sure that I don't override default Bundle-ClassPath, but I'm
using
two rules files, and one of this works ok, and the other not.
And finally - try to specify full path ([package]/'RuleFile.drl)
I think this is the best option ever, although by default it is not
necessary. I try all this.
Thanks you!!
Actually I've started with placing rule on a local disk and specifying
path to it (/home/user/rule.dlr) and then made some debugging.
Alex
On Thu, Feb 16, 2012 at 12:38 AM, jjmartinez <soyelmateo(a)gmail.com> wrote:
> 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-environm...
> Sent from the Drools: User forum mailing list archive at
Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users