[rules-users] Need Help with Enumerations and Classpath

Michael Anstis michael.anstis at gmail.com
Wed Dec 4 13:41:13 EST 2013


I assume this is guvnor 5.5 (or lower)?

You need to add the JAR with your helper class to your container's (AS7,
Tomcat) /lib folder.


On 4 December 2013 17:39, SrjTx <clickthex at yahoo.com> wrote:

> I am trying to create a enumeration that uses a class to populate it, per
> *16.10. Data enumerations (drop down list configurations)*.
>
> I have added the jar that contains my class to the drools repository and
> added it as a dependency to the project.
> When building a guided rule, that object can be selected and the editor
> will
> add
> import dbAccessProto.ListAccess;
>
> But, if I create an enumeration in the gui with Fact="a", field="b", and
> context = "(new dbAccessProto.ListAccess()).getListOfLists()"
>
> I get the error below.
>
> Is there some other place I need to put the jar flle or specify it?
>
> [Error: unable to resolve class: dbAccessProto.ListAccess from [Module
> "deployment.guvnor.war:main" from Service Module Loader]] [Near : {... [
> 'a.b' : (new dbAccessProto.ListAccess()).ge ....}] ^ [Line: 1, Column: 16]
>
> source:
> 1.      |       'a.b' : (new dbAccessProto.ListAccess()).getListOfLists()
>
>
>
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Need-Help-with-Enumerations-and-Classpath-tp4027091.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20131204/6582b4f4/attachment.html 


More information about the rules-users mailing list