jar-weblogic环境下调用接口报错,急,在线等!org.w3c.dom.Node.setUserData

问题描述

weblogic环境下调用接口报错,急,在线等!org.w3c.dom.Node.setUserData

之前在测试环境中测试是可以的,后来部署到正式环境就挂掉了,tomcat下也是正常的。项目的weblogic.xml也配置了优先加载项目的jar包,还是不行。
ava.lang.LinkageError: loader constraint violation: when resolving interface method "org.w3c.dom.Node.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the current class, org/apache/cxf/staxutils/StaxUtils, and the class loader (instance of ) for resolved class, org/w3c/dom/Node, have different Class objects for the type erDataHandler;)Ljava/lang/Object; used in the signature

解决方案

[gjj-webapp] 2014-11-10 13:10:00 [ERROR] org.springframework.scheduling.support.MethodInvokingRunnable {68} - Invocation of method 'receiveOfficeSystemScheduing' on target class [class com.digipower.erms.gjj.scheduing.receive.impl.ReceiveScheduingServiceImpl] failed

java.lang.LinkageError: loader constraint violation: when resolving interface method "org.w3c.dom.Node.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the current class, org/apache/cxf/staxutils/StaxUtils, and the class loader (instance of ) for resolved class, org/w3c/dom/Node, have different Class objects for the type erDataHandler;)Ljava/lang/Object; used in the signature
at org.apache.cxf.staxutils.StaxUtils.addLocation(StaxUtils.java:951)
at org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:809)
at org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:878)
at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:765)
at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:219)
at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:179)
at org.apache.cxf.wsdl11.WSDLServiceFactory.(WSDLServiceFactory.java:91)
at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:205)
at org.apache.cxf.jaxws.ServiceImpl.(ServiceImpl.java:148)
at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:65)
at javax.xml.ws.Service.(Service.java:36)
at com.ws.RisenetFiledataWSService.(RisenetFiledataWSService.java:54)
at com.digipower.erms.gjj.mgmt.receive.service.impl.OfficeSystemReceiveServiceImpl.processReceive(OfficeSystemReceiveServiceImpl.java:52)
at com.digipower.erms.gjj.mgmt.receive.service.impl.OfficeSystemReceiveServiceImpl$$FastClassByCGLIB$$792f763f.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
at com.digipower.erms.gjj.mgmt.receive.service.impl.OfficeSystemReceiveServiceImpl$$EnhancerByCGLIB$$acbd0523.processReceive()
at com.digipower.erms.gjj.scheduing.receive.impl.ReceiveScheduingServiceImpl.receiveOfficeSystemScheduing(ReceiveScheduingServiceImpl.java:16)
at sun.reflect.GeneratedMethodAccessor414.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)
at org.springframework.scheduling.support.MethodInvokingRunnable.run(MethodInvokingRunnable.java:65)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:51)
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

解决方案二:

同样遇到此问题,我在解决的过程中,一度认为是org.w3c.dom.Node.setUserData这个jar有冲突,其实冲突的是它的参数org/w3c/dom/Node,
多个jar中包含了这个org/w3c/dom/Node参数,解决方案是 查看项目中其他jar中 有那些jar 包含了org/w3c/dom/Node参数,再把多余的jar删掉就OK了

时间: 2024-08-04 12:34:05

jar-weblogic环境下调用接口报错,急,在线等!org.w3c.dom.Node.setUserData的相关文章

各位朋友好,请教ubuntu系统python3.4环境下安装matplotlib报错的解决办法

问题描述 各位朋友好,请教ubuntu系统python3.4环境下安装matplotlib报错的解决办法 具体的问题是这样的: 我的系统是Ubuntu14.04 的64位系统,python3.4版本下,想使用matplotlib来做图. 由于matplotlib依赖numpy和python的图像库PIL,因此我先安装numpy和PIL然后,再安装matplotlib, 这里附上我的安装matplotlib的shell命令 #安装科学计算库numpy sudo pip3 install numpy

项目移到linux环境下时tomcat报错 java.util.zip.ZipException: invalid END header

问题描述 我把我的一个windows环境下的项目移到linux环境下时tomcat报错,报错如下:java.util.zip.ZipException: invalid END header (bad central directory offset)at java.util.zip.ZipFile.open(Native Method)at java.util.zip.ZipFile.<init>(ZipFile.java:114)at java.util.jar.JarFile.<i

数据结构、c语言-急!!!!为何以下程序执行第2功能离开车厂后在vc++6.0环境下程序会报错并终止运行,求解决方案

问题描述 急!!!!为何以下程序执行第2功能离开车厂后在vc++6.0环境下程序会报错并终止运行,求解决方案 #include "stdafx.h" #include #include #include #define max 5 #define pri 5 typedef struct time{ int year; int day; int month; int hour; int min; }Time; typedef struct node{ char num[10]; Tim

解决PHP5.4环境下ECSHOP网站报错的方法

运行Ecshop首页出现报错:出现下面这就话: Strict Standards: Only variables should be passed by reference in D:\**\includes\cls_template.php on line 406 第406行:$tag_sel = array_shift(explode(' ', $tag)); 解决办法 1 5.3 5.4以上版本的问题,应该也和配置有关 只要406行把这一句拆成两句就没有问题了 $tag_sel = arr

windows 2003 环境下weblogic 9.2.3启动报错

问题描述 windows 2003 环境下weblogic 9.2.3启动报错 求助:weblogic 发布时报错,在tomcat下能够正常运行 #### <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> org.springframework.beans.factory.BeanCreationException: Error

weblogic 9.2.3 部署报错,在其他同样环境下未报错

问题描述 weblogic 9.2.3 部署报错,在其他同样环境下未报错 weblogic 9.2.3 部署报错:javax.xml.ws.WebServiceException: java.lang.ArrayIndexOutOfBoundsExcept,求教大神如何解决! ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <User define

sap-wsdl2java调用webservce报错,但是用soapui调用没问题,求大神帮忙分析下

问题描述 wsdl2java调用webservce报错,但是用soapui调用没问题,求大神帮忙分析下 AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server faultSubcode: faultString: System Error faultActor: faultNode: faultDetail: {http://sap.com/xi/WebService/xi2.0}SystemError:RCV

web服务-app 调用webservice的图片上传接口报错

问题描述 app 调用webservice的图片上传接口报错 以下为c#写的图片上传接口,图片是在app转为base64的:而当在服务上测试时是可以上传,即下图的位置 可是在app调用该接口时却出错,这是为什么,困扰了多天了.请大神帮忙哈 public JObject UploadPicture(string jsonString) { JToken Picture; JObject jobject = JObject.Parse(jsonString); Picture = jobject.G

C#调用顶尖PBUSDRV.DLL时,如果保质期shleftime大于3时,下传就报错

问题描述 C#调用顶尖PBUSDRV.DLL时,如果保质期shleftime大于3时,下传就报错 结构体声明如下: [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public struct TPlu { //[MarshalAsAttribute(UnmanagedType.ByValTStr, SizeConst = 36)] public string Name; public int LFCode; //[Mar