<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">This may be a container issue, which container are you using?<div><br></div><div>It doesn’t locate resources via the classloader. Instead it locates the jar on the file system and scans the contents of the jar. The jar must have a kmodule.xml file inside of it to be recognised and it’s resources added.</div><div><br></div><div>We know this works for normal jars. Inside of JBoss EAP you need to add the JBoss VFS jar (I think). We recently made weblogic work, and are currently investigating websphere.</div><div><br></div><div>Mark</div><div><div><div>On 6 May 2014, at 00:32, Ashish Nayyar &lt;<a href="mailto:ashishna@gmail.com">ashishna@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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 @&nbsp;</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">&nbsp;Thanks&nbsp;</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 <a href="http://Nabble.com">Nabble.com</a>.<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>
_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/rules-users</blockquote></div><br></div></body></html>