[rules-users] Guvnor 5.5 POJO upload error when there is dependency

maunakea satishnryn at gmail.com
Thu Jul 25 11:12:22 EDT 2013


Guvnor 5.5.0 on Tomcat 7
I have 2 model jars:
x.jar
y.jar

Both contain our domain pojos. y.jar does not have any dependencies. x.jar
has a reference to a class in y.jar
When I upload y.jar, no errors
When I upload x.jar after y.jar is already uploaded, I get this error for
the class that is in y.jar
Caused by: java.lang.NoClassDefFoundError: com/classFromY.jar
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:630)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
	at
org.drools.rule.MapBackedClassLoader.fastFindClass(MapBackedClassLoader.java:85)
	at
org.drools.rule.MapBackedClassLoader.loadClass(MapBackedClassLoader.java:103)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
	at
org.drools.guvnor.server.contenthandler.ModelContentHandler.isClassVisible(ModelContentHandler.java:184)
	at
org.drools.guvnor.server.contenthandler.ModelContentHandler.getImportsFromJar(ModelContentHandler.java:149)
	at
org.drools.guvnor.server.contenthandler.ModelContentHandler.onAttachmentRemoved(ModelContentHandler.java:87)
	at
org.drools.guvnor.server.RepositoryAssetService.archiveOrUnarchiveAsset(RepositoryAssetService.java:489)

Due to project/organization, I am not able to merge both jars.

So question...
Does the Guvnor pojo jar require that it cannot have any dependencies
outside the jar? even if the other jar is also uploaded?

thanks



--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-5-5-POJO-upload-error-when-there-is-dependency-tp4025146.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list