Hi there,

I'm running Restlet 2.1 RC1 (JEE edition, using the XML extension) and JBoss 
7.1.0.beta, and I'm generating a DomRepresentation on the server, in an 
overriden Representation get(...) method.

Unfortunately, requesting that representation produces the following exception:

loader constraint violation: when resolving method 
"org.restlet.ext.xml.DomRepresentation.(Lorg/restlet/data/MediaType;Lorg/w3c/dom/Document;)V"
 the class loader (instance of org/jboss/modules/ModuleClassLoader) of the 
current class, 
com/hiatus/poblish2/rest/resources/activity/ActivityFeedResource, and the class 
loader (instance of org/jboss/modules/ModuleClassLoader) for resolved class, 
org/restlet/ext/xml/DomRepresentation, have different Class objects for the 
type ediaType;Lorg/w3c/dom/Document;)V used in the signature

The XML JAR is properly configured within the Restlet module I've set up in 
JBoss.

Are there any workarounds for Restlet extension classloading for JBoss 7, or 
might it be possible to generate a monolithic JAR to bypass the issue?

Thanks,

Andrew

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2895225

Reply via email to