1、CXF java.lang.RuntimeException: Cannot create a secure XMLInputFactory
解决方案:从apache-cxf/lib下寻找Woodstox jar包添加至buildpath
2、Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/stax2/XMLOutputFactory2
解决方案:缺少stax2-api jar包
3、FAULT received from BPEL process : {http://docs.oasis-open.org/wsbpel/2.0/process/executable}subLanguageExecutionFault org.apache.ode.utils.xsl.XslTransformException: TransformerException when transform XSL[sxlt_1.xsl]
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:158)
问题原因:由于webservice服务端要求接收的报文如xml统一在<xml?>头与尾两端加上<![CDATA[ 和 ]]>标签标明中间xml当成一个普通的字符串,服务端拿到字符串后再解析,避免乱码,但是代码中调用时无需转义加上<![CDATA[反而报如上错误。
时间: 2024-11-03 03:26:20