WebLogic Integration CXF Error: Cannot create a secure xmlinputfactory
================================
? Copyright Sweet Potato Yiu May 17, 2018
https://www.cnblogs.com/fanshuyao/
First, the problem description
WEBLOGIC10 integration cxf start times wrong:
Java code
- Cannot create a secure xmlinputfactory
Cause of Error:
This should be due to a conflict between the Jax-WS package inside the WebLogic and the CXF jar package that you added.
Two solutions:
Modify the Web-inf\weblogic.xml file
XML code
- <!--write-off CXF
- <!--
- <container-descriptor>
- <servlet-reload-check-secs>20</servlet-reload-check-secs>
- </container-descriptor>
- -->
- <!--add to CXF: Adjust the order in which the WebLogic loads the jar packages, prioritize using your own jar--
- <container-descriptor>
- <index-directory-enabled>true</index-directory-enabled>
- <prefer-web-inf-classes>true</prefer-web-inf-classes>
- </container-descriptor>
Also, note the CXF-dependent jar package:
Java code
- cxf-2.6. 15.jar
- neethi-3.0. 3.jar
- stax2-api-3.1. 4.jar
- woodstox-core-asl-4.4. 0.jar
- wsdl4j-1.5. 1.jar
- xmlschema-core-2.0. 3.jar
================================
? Copyright Sweet Potato Yiu May 17, 2018
https://www.cnblogs.com/fanshuyao/
WebLogic Integration CXF Error: Cannot create a secure xmlinputfactory