java.lang.LinkageError: loader constraint violation: when resolving overridden method "com.sun.xml.ws.message.jaxb.AttachmentMarshallerImpl.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, com/sun/xml/ws/message/jaxb/AttachmentMarshallerImpl, and its superclass loader (instance of <bootloader>), have different Class objects for the type javax/activation/DataHandler used in the signature
因为jetty自带的activation.jar和你的application中用到的activation.jar版本不一样 也即It seems that versions of the same library are loaded in different classloaders, nasty error.
解决的办法就是把删除一个,把javaee.jar移动到jetty的lib下面
posted on 2009-09-18 16:13
冰是没有未来的,因为它的永恒 阅读(4467)
评论(2) 编辑 收藏 所属分类:
java