Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] grails + groovyws + jetty


In my app I've used groovyws to access some services. If I use the Tomcat for deploying,
the app works fine (it's able to acceess that services) but when I use Jetty, I've got this error:

Jun 19, 2009 10:07:21 AM getBindingOperationInfo
WARNING:  Using SOAP version: 1.1
97102 [1741825447@qtp-741284129-7] ERROR StackTrace - Sanitizing stacktrace:
java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.apache.cxf.jaxb.attachment.JAXBAttachmentMarshaller.addMtomAttachment(Ljavax/activation/DataHandler;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;" the class loader (instance of org/mortbay/jetty/webapp/WebAppClassLoader) of the current class, org/apache/cxf/jaxb/attachment/JAXBAttachmentMarshaller, and its superclass loader (instance of <bootloader>), have different Class objects for the type javax/activation/DataHandler used in the signature
    at org.apache.cxf.jaxb.JAXBDataBase.getAttachmentMarshaller(
    at org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(
    at org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
    at org.apache.cxf.endpoint.ClientImpl.invoke(
    at org.apache.cxf.endpoint.ClientImpl.invoke(
    at org.apache.cxf.endpoint.ClientImpl.invoke(
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(
    at apps.promep.UserSyncService.export(UserSyncService.groovy:31)

Even if I remove all jars that contains the "javax/activation/DataHandler" from my app lib directory and JETTY_HOME/lib,
the error still appears.

Does somebody have an idea about how to solve this problem?


Back to the top