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
因?yàn)閖etty自帶的activation.jar和你的application中用到的activation.jar版本不一樣 也即It seems that versions of the same library are loaded in different classloaders, nasty error.
解決的辦法就是把刪除一個(gè),把javaee.jar移動(dòng)到j(luò)etty的lib下面