我正在使用WebLogic12c和jax-WS2.2来制作webservice客户端ssl。
我的问题是当我在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
谢谢。
发布于 2012-06-05 17:44:46
错误是因为jaspertReport和JRE都有库QName,如果你在你的jasperreport中去掉了xmlapis,错误就不存在了。出现这个错误是因为我有相同的库和相同的调用路径,而应用程序不知道是谁选择的,我修复了这个错误,因为我认为最好不要有重复的库,而不是标记要使用的库
https://stackoverflow.com/questions/10008759
复制相似问题