[rules-users] Rules not picked when packaged inside the JAR
Ashish Nayyar
ashishna at gmail.com
Mon May 5 19:32:33 EDT 2014
Can anyone help here please ?
I am working on DROOLS 6.0.1 application. I have my rule files (*.drl)
packaged inside a separate project which is included as a jar file as a
maven dependency. When I deploy my project, KIEModule is not able to find
the rules files (which are packaged inside the jar above). I am not getting
an error though but rules are not getting fired. If I manually place the
rules files under classpath say WEB-INF/rules/*.drl they are detected and
rules are executed. I was under impression that KIEmodules are auto
discovered from anywhere in classpath. Any pointers are appreciated. This
is general question hence I have not included the comprehensive code files.
Everything start working once I place the *.drl files in the classpath
(take them outside of jar). I have opened the JIRA issue @
Link<https://issues.jboss.org/browse/DROOLS-466>
Thanks
On Tue, Apr 29, 2014 at 3:51 PM, ash316 <ashishna at gmail.com> wrote:
> I am working on DROOLS 6.0.1 application. I have my rule files (*.drl)
> packaged inside a separate project which is included as a jar file as a
> maven dependency. When I deploy my project, KIEModule is not able to find
> the rules files (which are packaged inside the jar above). I am not getting
> an error though but rules are not getting fired. If I manually place the
> rules files under classpath say WEB-INF/rules/*.drl they are detected and
> rules are executed. I was under impression that KIEmodules are auto
> discovered from anywhere in classpath. Any pointers are appreciated. This
> is general question hence I have not included the comprehensive code files.
> Everything start working once I place the *.drl files in the classpath
> (take them outside of jar). I have opened the JIRA issue @ Link<https://issues.jboss.org/browse/DROOLS-466>Thanks
> ------------------------------
> View this message in context: Rules not picked when packaged inside the
> JAR<http://drools.46999.n3.nabble.com/Rules-not-picked-when-packaged-inside-the-JAR-tp4029378.html>
> Sent from the Drools: User forum mailing list archive<http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html>at Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140506/b7437881/attachment.html
More information about the rules-users
mailing list