Thanks – I will try it this morning.
Herm
From: Esteban [via Drools] [mailto:ml-node+s46999n3765911...@n3.nabble.com]
Sent: Wednesday, February 22, 2012 1:55 AM
To: Herman Post
Subject: Re: [rules-users] KnowledgeAgent custom class loader not working for
PKG resources
I forgot to mention that you will have to change your code a little bit.
Instead of passing a KnowledgeBuilderConfiguration to the agent, you will need
to add a configuration option to the KnowledgeAgentConfiguration object your
are using:
aconf.setProperty("drools.agent.useKBaseClassLoaderForCompiling", "true");
This way you are telling the agent to use the kbase's internal CL (We may set
this as the default value I think).
If you want to try my fix, this is what you need to do:
- Prerequisites: java 1.5 or grater, maven 3.0.3 or grater and git
1.- $git clone
git://github.com/droolsjbpm/drools.git<http://github.com/droolsjbpm/drools.git>
drools (It will download all the sources and place them in "drools" directory")
2.- Get the fix from my repo. Fortunately, the fix is just one file:
https://raw.github.com/esteban-aliverti/drools/61c2110df8c55c67ff532491865b3f28f368e8db/drools-core/src/main/java/org/drools/agent/impl/KnowledgeAgentImpl.java
3.- Replace the file
/drools-core/src/main/java/org/drools/agent/impl/KnowledgeAgentImpl.java in
your working copy with the file you downloaded in the previous step.
4.- $mvn clean install -DskipTests=true (this will compile everything and
install the generated artifacts in your local maven repo) This could take some
time.
5.- If in your project you are already using maven, then you just need to
update the version of your dependencies to 5.4.0-SNAPSHOT. If you are not
using maven, then you need to go to your local repo an get the generated
drools-core-5.4.0-SNAPSHOT.jar and use it.
Best Regards,
Best Regards,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com
On Tue, Feb 21, 2012 at 7:52 PM, Hrumph <[hidden
email]</user/SendEmail.jtp?type=node&node=3765911&i=0>> wrote:
Thanks Esteban. I’m not too adept with Git but will see what I can do.
Herm
From: Esteban [via Drools] [mailto:[hidden
email]<http://user/SendEmail.jtp?type=node&node=3764501&i=0>]
Sent: Tuesday, February 21, 2012 11:10 AM
To: Herman Post
Subject: Re: [rules-users] KnowledgeAgent custom class loader not working for
PKG resources
I added some comments to the issue and provided a possible solution to it. I'm
waiting for the review and comments from the core developers.
In the meantime, if you have some skills with maven and git and you don't want
to wait, you can create your own version of drools applying the provided patch
to see if everything is ok.
Best Regards,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
- Developer @ click here.
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: RE: [rules-users] KnowledgeAgent custom class
loader not working for PKG
resources<http://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-working-for-PKG-resources-tp3746456p3764501.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]</user/SendEmail.jtp?type=node&node=3765911&i=1>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=3765911&i=2>
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/KnowledgeAgent-custom-class-loader-not-working-for-PKG-resources-tp3746456p3765911.html
To unsubscribe from KnowledgeAgent custom class loader not working for PKG
resources, click
here<http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3746456&code=SGVybWFuLlBvc3RAaW1haWwub3JnfDM3NDY0NTZ8NDA0OTE1Mzg5>.
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/KnowledgeAgent-custom-class-loader-not-working-for-PKG-resources-tp3746456p3766860.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users