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
冰是沒有未來的,因為它的永恒 閱讀(4477)
評論(2) 編輯 收藏 所屬分類:
java