[rules-users] Rules not picked when packaged inside the JAR

ash316 ashishna at gmail.com
Mon May 5 22:51:21 EDT 2014


I am using JBOSS 6.1 EAP and my application also uses kie-spring 6.1-Beta
On May 6, 2014 12:03 PM, "Mark Proctor [via Drools]" <
ml-node+s46999n4029432h51 at n3.nabble.com> wrote:

> This may be a container issue, which container are you using?
>
> 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.
>
> 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.
>
> Mark
> On 6 May 2014, at 00:32, Ashish Nayyar <[hidden email]<http://user/SendEmail.jtp?type=node&node=4029432&i=0>>
> wrote:
>
> 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 <[hidden email]<http://user/SendEmail.jtp?type=node&node=4029432&i=1>
> > 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
>> [hidden email] <http://user/SendEmail.jtp?type=node&node=4029432&i=2>
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
> _______________________________________________
> rules-users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4029432&i=3>
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> _______________________________________________
> rules-users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4029432&i=4>
> https://lists.jboss.org/mailman/listinfo/rules-users
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://drools.46999.n3.nabble.com/Rules-not-picked-when-packaged-inside-the-JAR-tp4029378p4029432.html
>  To unsubscribe from Rules not picked when packaged inside the JAR, click
> here<http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4029378&code=YXNoaXNobmFAZ21haWwuY29tfDQwMjkzNzh8MjA3MTQ0OTQ4OA==>
> .
> NAML<http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://drools.46999.n3.nabble.com/Rules-not-picked-when-packaged-inside-the-JAR-tp4029378p4029433.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140505/e9d14016/attachment.html 


More information about the rules-users mailing list