weblogic10 下发布axis2启动时报javax.xml.namespace.QName 10
具体错误如下:<Servlet:"AxisServlet"failedtopreloadonstartupinWebapplication:"axis2".java.la...
具体错误如下:
<Servlet: "AxisServlet" failed to preload on startup in Web application: "axis2".
java.lang.NoSuchMethodError: javax.xml.namespace.QName.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
at org.apache.axis2.engine.DispatchPhase.<clinit>(DispatchPhase.java:334)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
Truncated. see log file for complete stacktrace
将axis2-1.5.4-war解压后在WEB-INF下加了weblogic.xml
其内容为:
<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>
加后报错,不加的话在客户端调服务器报另外一个不支持DTD错误
org.apache.axis2.AxisFault: java.lang.IllegalArgumentException: Unable to access unsupported property javax.xml.stream.supportDTD 展开
<Servlet: "AxisServlet" failed to preload on startup in Web application: "axis2".
java.lang.NoSuchMethodError: javax.xml.namespace.QName.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
at org.apache.axis2.engine.DispatchPhase.<clinit>(DispatchPhase.java:334)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
Truncated. see log file for complete stacktrace
将axis2-1.5.4-war解压后在WEB-INF下加了weblogic.xml
其内容为:
<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>
加后报错,不加的话在客户端调服务器报另外一个不支持DTD错误
org.apache.axis2.AxisFault: java.lang.IllegalArgumentException: Unable to access unsupported property javax.xml.stream.supportDTD 展开
2个回答
展开全部
也许是分析wsdl文件时的错误。
我之前用axis2调用xfire的wsdl文件会有传参数为空的问题,因为xfire生成的wsdl文件对pojo的声明比较全面,而axis2的pojo声明不全,没有写明,那个bean被绑定到那个属性上,如xfire的声明: <xsd:element minOccurs="0" name="id" nillable="true" type="xsd:string" /> ,而axis没有name和nillable这一声明,致使分写wsdl文件不兼容,请查看两个端得wsdl文件格式,确保一样,就能引用了。
我之前用axis2调用xfire的wsdl文件会有传参数为空的问题,因为xfire生成的wsdl文件对pojo的声明比较全面,而axis2的pojo声明不全,没有写明,那个bean被绑定到那个属性上,如xfire的声明: <xsd:element minOccurs="0" name="id" nillable="true" type="xsd:string" /> ,而axis没有name和nillable这一声明,致使分写wsdl文件不兼容,请查看两个端得wsdl文件格式,确保一样,就能引用了。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询