I think (not sure) that an uploaded jar must be complete by itself.
The only things (classes) it can reference must be in guvnor's classpath
(guvnor own libs and tomcat and java, but not current package other jars).
So :
- try using a single jar
- or put all your jars in guvnor classpath (tomcat libs or guvnor war's libs)
PS : When using your app, the classpath will be your app's one. When you get
rules from guvnor, you don't get jars with them ... so it is two different
environments.
- Mail original -
De: "mpgong"
À: rules-users@lists.jboss.org
Envoyé: Vendredi 18 Mai 2012 17:37:55
Objet: [rules-users] Classnotfound exception on POJO model upload in guvnor
Hello,
I'm trying to use Guvnor but when i upload my POJO models that my DRL needs
i get a classnotfoundexception even though i uploaded the jar that has the
class in it first.
So i basically upload a jar that provides some common classes,utilities,
that have no dependencies other than on the core java libs. This jar
uploads fine. I then upload my model jar that contains my facts and other
classess that the DRL needs and it complains that it can't find the class
from the first common jar even though i uploaded it first and it is loaded
without errors.
How do i load all of my jars so that they are available in Guvnor to use
such as in creating a test scenario? It looks like the jars are upload but
i get the error, i can also build the package but i'm worried it won't work
when i try to use it in my app. Any ideas or insight to this issue.
I'm using drools.5.3.0 final.
Thanks
--
View this message in context:
http://drools.46999.n3.nabble.com/Classnotfound-exception-on-POJO-model-upload-in-guvnor-tp4001060.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
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