我們試圖使用CXF框架進行web服務調用,涉及CXF-ws安全性,應用程序正在部署在weblogic 10.3中,但接收在異常下面,看起來像weblogic特定的jar被拾取,儘管xercesimpl jar存在於/ WEB-INF/lib的應用程序中。CXF 3.0.2在weblogic10.3中拋出「java.lang.AssertionError:UNIMPLEMENTED」異常
選項嘗試過,但並沒有幫助:
- 與 WEB-INF喜好
真實場景weblogic的容器描述符。
- 設置JVM參數或系統屬性作爲 -
將xercesimpl jar添加到maven pom。
異常
]] ServletException的根本原因。 java.lang.AssertionError:UNIMPLEMENTED at weblogic.xml.domimpl.NodeImpl.setTextContent(NodeImpl.java:216) at org.apache.jcp.xml.dsig.internal.dom.XmlWriterToTree.writeAttribute(XmlWriterToTree.java: 137) at org.apache.jcp.xml.dsig.internal.dom.DOMXMLSignature.marshal(DOMXMLSignature。org.apache.jcp.xml.dsig.internal.dom.XmlWriterToTree.writeNamespace(XmlWriterToTree.java:114) java:211) at org.apache.wss4j.dom.message.WSSecSignature.computeSignature org.apache.jcp.xml.dsig.internal.dom.DOMXMLSignature.sign(DOMXMLSignature.java:329) (WSSecSignature.java: 578) at org.apache.wss4j.dom.action.SignatureAction.execute(SignatureAction.java:151) at org.apache.wss4j.dom.handler.WSHandler.doSend erAction(WSHandler.java:226) at org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.access $ 100(WSS4JOutInterceptor.java:54) at org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor $ WSS4JOutInterceptorInternal .handleMessageInternal在org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor(WSS4JOutInterceptor.java:282) 在org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor $ WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:154) $ WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:141) 在org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
enter code here
在org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java: 514) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl .java:423) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:326) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:279) at org.apache .cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:98) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy。Java的:138)感謝, Soumya
-Djavax.xml.soap.MessageFactory = com.sun.xml.internal.messaging.saaj.soap .ver1_1.SOAPMessageFactory1_1Impl -Djavax.xml.soap.SOAPFactory = com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl -Djavax.xml.soap.SOAPConnectionFactory = weblogic.wsee.saaj.SOAPConnectionFactoryImpl
這篇文章實際上解決了我的問題http://cxf.547215.n5.nabble.com/Running-CXF-WSS4J-on-Weblogic-td5626091.html但我還在等待更好的答案。作者提到了一些我認爲可能會成爲問題的警告 –