AFAIK (waiting to be told otherwise) Guvnor builds its classpath from the assets that are within it's repository.

Normally, for instance, if you want additional classes you'd upload them as a POJO model. It could be worth trying this first; i.e. upload your JAR containing the accumulate function as a POJO model.

It's also quite possible however that there's another issue ;)

2011/7/25 Melton, Michael P CTR SPAWARSYSCEN-ATLANTIC, 01200 <michael.melton.ctr@navy.mil>
Is there a different way to get my jar into Guvnor's classloader?  I've been putting it in the JBoss lib directory.  It would be great if this was just user error.
 
Thanks.
Mike


From: Edson Tirelli
Sent: Mon 7/25/2011 13:19
To: Rules Users List
Subject: Re: [rules-users] Guvnor - AccumulateFunction ClassCastException


   This is looking like a classloader issue. I assume your function is correctly implementing the org.drools.runtime.rule.AccumulateFunction, as you mention that it works outside of guvnor. So my guess is that your function jar is being loaded by a classloader in a different hierarchy and that is raising the CCE?

   Edson

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users