最近在学习使用XFire时,在结合SOAP Header信息验证时竟然抛出了异常,到网上搜索了一大堆资料,但还没有办法解决。附件中是我的工程文件,服务器使用的是Resin3.0.23.
给的工程中缺少下面的包
XFire的版本是1.2.6
lib包中包含activation-1.1.jar,commons-codec-1.3.jar,commons-httpclient-3.0.jar
,commons-logging-1.0.4.jar,jaxen-1.1-beta-9.jar,jdom-1.0.jar,jsr173_api-1.0.jar,mail-1.4.jar,spring2.0.jar,wsdl4j-1.6.1.jar,wss4j-1.5.1.jar,wstx-asl-3.2.0.jar,xbean-2.2.0.jar,xbean-spring-2.8.jar,xbean-spring-2.8.jar,XmlSchema-1.1.jar
抛出的异常既然是无法解析[META-INF/xfire/services.xml]
Error initializing XFireServlet.
[10:51:09.671] org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [META-INF/xfire/services.xml]; nested exception is java.lang.IllegalStateException: Unable to invoke parseNestedCustomElement method
[10:51:09.671] Caused by: java.lang.IllegalStateException: Unable to invoke parseNestedCustomElement method,
在services.xml中注释<!--<handlers></handlers-->就是正常的。
请给为熟悉XFire的达人给看看。在此十分感谢
给的工程中缺少下面的包
XFire的版本是1.2.6
lib包中包含activation-1.1.jar,commons-codec-1.3.jar,commons-httpclient-3.0.jar
,commons-logging-1.0.4.jar,jaxen-1.1-beta-9.jar,jdom-1.0.jar,jsr173_api-1.0.jar,mail-1.4.jar,spring2.0.jar,wsdl4j-1.6.1.jar,wss4j-1.5.1.jar,wstx-asl-3.2.0.jar,xbean-2.2.0.jar,xbean-spring-2.8.jar,xbean-spring-2.8.jar,XmlSchema-1.1.jar
抛出的异常既然是无法解析[META-INF/xfire/services.xml]
Error initializing XFireServlet.
[10:51:09.671] org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [META-INF/xfire/services.xml]; nested exception is java.lang.IllegalStateException: Unable to invoke parseNestedCustomElement method
[10:51:09.671] Caused by: java.lang.IllegalStateException: Unable to invoke parseNestedCustomElement method,
在services.xml中注释<!--<handlers></handlers-->就是正常的。
请给为熟悉XFire的达人给看看。在此十分感谢