-
1. Re: CXF HelloWorld Security - Error reading XMLStreamReader
njiang Feb 1, 2012 7:48 PM (in response to oottavi)Hi,
Can you check the log of the ServiceMix?
We need more information on the server side.
Willem
-
2. Re: CXF HelloWorld Security - Error reading XMLStreamReader
ffang Feb 1, 2012 9:59 PM (in response to oottavi)Hi,
If you found exception like
Caused by: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provider org.apache.axis2.saaj.MessageFactoryImpl not found
in $FUSE_ESB/data/log/servicemix.log then I believe you run into a known issue[1], the workaround is manually install saaj-impl bundle from console like
install -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saaj-impl/1.3.2_2
before you install examples-cxf-ws-security-osgi.
https://fusesource.com/issues/browse/ESB-1615
Freeman
-
3. Re: CXF HelloWorld Security - Error reading XMLStreamReader
oottavi Feb 2, 2012 4:04 AM (in response to ffang)Yes thanks it solves the problem - I had to change some startup command as well:
rem SAAJ Sun Properties
set JAVA_OPTS=%JAVA_OPTS% -Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl
set JAVA_OPTS=%JAVA_OPTS% -Djavax.xml.soap.MetaFactory=com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl
set JAVA_OPTS=%JAVA_OPTS% -Djavax.xml.soap.SOAPFactory=com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl