<p dir="ltr">I am using JBOSS 6.1 EAP and my application also uses kie-spring 6.1-Beta</p>
<div class="gmail_quote">On May 6, 2014 12:03 PM, &quot;Mark Proctor [via Drools]&quot; &lt;<a href="/user/SendEmail.jtp?type=node&node=4029433&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote:<br type="attribution">
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        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="http://user/SendEmail.jtp?type=node&amp;node=4029432&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt; wrote:</div>
<br><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" 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 @ </span><a href="https://issues.jboss.org/browse/DROOLS-466" rel="nofollow" link="external" style="font-family:arial,sans-serif;font-size:13px" target="_blank">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="http://user/SendEmail.jtp?type=node&amp;node=4029432&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt;</span> wrote:<br>

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" rel="nofollow" link="external" 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" rel="nofollow" link="external" target="_blank">Drools: User forum mailing list archive</a> at <a href="http://Nabble.com" rel="nofollow" link="external" target="_blank">Nabble.com</a>.<br>
<br>_______________________________________________<br>

rules-users mailing list<br>
<a href="http://user/SendEmail.jtp?type=node&amp;node=4029432&amp;i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br></div>
_______________________________________________<br>rules-users mailing list<br><a href="http://user/SendEmail.jtp?type=node&amp;node=4029432&amp;i=3" rel="nofollow" link="external" target="_blank">[hidden email]</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/rules-users</a></blockquote>
</div><br></div><br>_______________________________________________
<br>rules-users mailing list
<br><a href="http://user/SendEmail.jtp?type=node&amp;node=4029432&amp;i=4" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://drools.46999.n3.nabble.com/Rules-not-picked-when-packaged-inside-the-JAR-tp4029378p4029432.html" target="_blank" rel="nofollow" link="external">http://drools.46999.n3.nabble.com/Rules-not-picked-when-packaged-inside-the-JAR-tp4029378p4029432.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Rules not picked when packaged inside the JAR, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>

                <a href="http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></blockquote></div>


        
        
        
<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-tp4029378p4029433.html">Re: [rules-users] 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">Drools: User forum mailing list archive</a> at Nabble.com.<br/>