Thanks for the feedback. So it seems it is really a classloader issue on the container.

   Edson

2011/7/28 Melton, Michael P CTR SPAWARSYSCEN-ATLANTIC, 01200 <michael.melton.ctr@navy.mil>
I got distracted from this issue for a few days, but I was just able to get back to it and I can confirm: uploading my jar as a POJO model does allow me to build the package successfully.  This isn't 100% intuitive but I'm definitely glad to see it working!
 
Thanks everyone for the feedback.
Mike


From: Michael Anstis
Sent: Mon 7/25/2011 13:41

To: Rules Users List
Subject: Re: [rules-users] Guvnor - AccumulateFunction ClassCastException

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



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




--
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com