2012-04-04 196 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,因为我认为是更好没有标记的图书馆使用