<div dir="ltr"><div>I assume this is guvnor 5.5 (or lower)?<br><br></div>You need to add the JAR with your helper class to your container&#39;s (AS7, Tomcat) /lib folder.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 4 December 2013 17:39, SrjTx <span dir="ltr">&lt;<a href="mailto:clickthex@yahoo.com" target="_blank">clickthex@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am trying to create a enumeration that uses a class to populate it, per<br>
*16.10. Data enumerations (drop down list configurations)*.<br>
<br>
I have added the jar that contains my class to the drools repository and<br>
added it as a dependency to the project.<br>
When building a guided rule, that object can be selected and the editor will<br>
add<br>
import dbAccessProto.ListAccess;<br>
<br>
But, if I create an enumeration in the gui with Fact=&quot;a&quot;, field=&quot;b&quot;, and<br>
context = &quot;(new dbAccessProto.ListAccess()).getListOfLists()&quot;<br>
<br>
I get the error below.<br>
<br>
Is there some other place I need to put the jar flle or specify it?<br>
<br>
[Error: unable to resolve class: dbAccessProto.ListAccess from [Module<br>
&quot;deployment.guvnor.war:main&quot; from Service Module Loader]] [Near : {... [<br>
&#39;a.b&#39; : (new dbAccessProto.ListAccess()).ge ....}] ^ [Line: 1, Column: 16]<br>
<br>
source:<br>
1.      |       &#39;a.b&#39; : (new dbAccessProto.ListAccess()).getListOfLists()<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Need-Help-with-Enumerations-and-Classpath-tp4027091.html" target="_blank">http://drools.46999.n3.nabble.com/Need-Help-with-Enumerations-and-Classpath-tp4027091.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">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>
</blockquote></div><br></div>