2012-04-04 184 views
0

我amm與weblogic 12c與jax-ws 2.2一起使用web服務客戶端ssl。Weblogic 12c與QName

我的問題是當我在javax.xml.namespace.QName中創建一個javax.xml.ws.Service
javax.xml.namespace.QName qname = new javax.xml.namespace.QName("prueba1", "prueba1");
javax.xml.ws.Service create = javax.xml.ws.Service.create(url,qname);

當我嘗試構建服務我得到:

java.lang.LinkageError: loader constraint violation: when resolving method "javax.xml.ws.Service.create(Ljavax/xml/namespace/QName;)Ljavax/xml/ws/Service;" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the current class, org/InstanceInterface, and the class loader (instance of <bootloader>) for resolved class, javax/xml/ws/Service, have different Class objects for the type javax/xml/namespace/QName used in the signature

謝謝。

+0

但如果我嘗試像java應用其作品。我認爲這可能是關於JDK(即使用jdk 1.6)與WEbLogic庫重複的庫。我真的不知道 – Xavier 2012-04-04 10:52:52

回答

1

錯誤是因爲jaspertReport和JRE有libary QName,如果你在你的jasperreport錯誤中行爲xmlapis已經不存在了。 這個錯誤發生,因爲我有相同的庫具有相同的路徑調用和應用程序不知道誰選擇我修正了exllusion,因爲我認爲是更好沒有標記的圖書館使用