<div dir="ltr">Can anyone help here please ?<div><br><div><span style="font-family:arial,sans-serif;font-size:13px">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 @ </span><a href="https://issues.jboss.org/browse/DROOLS-466" rel="nofollow" link="external" target="_blank" style="font-family:arial,sans-serif;font-size:13px">Link</a><span style="font-family:arial,sans-serif;font-size:13px"> Thanks </span><br>
</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 29, 2014 at 3:51 PM, ash316 <span dir="ltr">&lt;<a href="mailto:ashishna@gmail.com" target="_blank">ashishna@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">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 @ <a href="https://issues.jboss.org/browse/DROOLS-466" rel="nofollow" link="external" target="_blank">Link</a>

Thanks

        
        
        
<br><hr align="left" width="300">
View this message in context: <a href="http://drools.46999.n3.nabble.com/Rules-not-picked-when-packaged-inside-the-JAR-tp4029378.html" target="_blank">Rules not picked when packaged inside the JAR</a><br>
Sent from the <a href="http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html" target="_blank">Drools: User forum mailing list archive</a> at Nabble.com.<br><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>