Thanks – I will try it this morning.
Herm
From: Esteban [via Drools] [mailto:ml-node+s46999n3765911h50@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/dr...
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/61c2110df8c55c67ff53249186...
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=...
________________________________
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-clas...
Sent from the Drools: User forum mailing list
archive<http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.htm... 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-...
To unsubscribe from KnowledgeAgent custom class loader not working for PKG resources,
click
here<http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=...;.
NAML<http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=...
--
View this message in context:
http://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.