<HTML dir=ltr><HEAD></HEAD>
<BODY>
<DIV dir=ltr id=idOWAReplyText21943>
<DIV dir=ltr><FONT color=#000000 size=2 face=Arial>I got distracted from this issue for&nbsp;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.&nbsp; This isn't 100% intuitive but I'm definitely glad to see it working!</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2 face=Arial>Thanks everyone for the feedback.</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial>Mike</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> Michael Anstis<BR><B>Sent:</B> Mon 7/25/2011 13:41<BR><B>To:</B> Rules Users List<BR><B>Subject:</B> Re: [rules-users] Guvnor - AccumulateFunction ClassCastException<BR></FONT><BR></DIV>
<DIV>AFAIK (waiting to be told otherwise) Guvnor builds its classpath from the assets that are within it's repository.<BR><BR>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.<BR><BR>It's also quite possible however that there's another issue ;)<BR><BR>
<DIV class=gmail_quote>2011/7/25 Melton, Michael P CTR SPAWARSYSCEN-ATLANTIC, 01200 <SPAN dir=ltr>&lt;<A href="mailto:michael.melton.ctr@navy.mil" target=_blank>michael.melton.ctr@navy.mil</A>&gt;</SPAN><BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote>
<DIV>
<DIV dir=ltr>
<DIV dir=ltr><FONT color=#000000 size=2 face=Arial>Is there a different way to get my jar into Guvnor's classloader?&nbsp; I've been putting it in the JBoss lib directory.&nbsp; It would be great if this was just user error.</FONT></DIV><FONT size=2 face=Arial></FONT></DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2 face=Arial>Thanks.</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial>Mike</FONT></DIV>
<DIV dir=ltr><BR></DIV>
<DIV dir=ltr>
<HR>
</DIV>
<DIV dir=ltr><FONT size=2 face=Tahoma><B>From:</B> Edson Tirelli<BR><B>Sent:</B> Mon 7/25/2011 13:19<BR><B>To:</B> Rules Users List<BR><B>Subject:</B> Re: [rules-users] Guvnor - AccumulateFunction ClassCastException<BR></FONT><BR></DIV>
<DIV class=im>
<DIV>
<DIV><BR></DIV>&nbsp;&nbsp; This is looking like a classloader issue. I assume your function is correctly implementing the&nbsp;<SPAN style="FONT-FAMILY: Arial">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?</SPAN> 
<DIV><FONT face=Arial><BR></FONT></DIV>
<DIV><FONT face=Arial>&nbsp;&nbsp; Edson<BR></FONT></DIV></DIV></DIV></DIV><BR>_______________________________________________<BR>rules-users mailing list<BR><A href="mailto:rules-users@lists.jboss.org" target=_blank>rules-users@lists.jboss.org</A><BR><A href="https://lists.jboss.org/mailman/listinfo/rules-users" target=_blank>https://lists.jboss.org/mailman/listinfo/rules-users</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>