CXF webService call error: "Cannot create a secure XMLInputFactory", cxfxmlinputfactory
Problem description:
The server uses the cxf --- 2.7.5 framework to publish a service, compress the project into a war package, and deploy it to tomcat for testing. There is no problem, however, the service can be released normally after the ear package is packaged and deployed on weblogic 10.3.6, but an error is reported during the soapui test call:
Cause:
I checked some official website information and found that this isWeblogic 10.3.6 bug
Solution:
You can find the weblogic-application.xml In the weblogic installation directory, open the file, you can see:
Pay attention to the content in the red box. What you need to do is add<Package-name> com. ctc. wstx. * </package-name>
Remember to save it after adding it, And then restart weblogic.
Note:Com. ctc. wstx .*This is youWoodstox-core-asl-4.2.0.jarAll classes.
If you have any questions, check whether your project is added.Stax2-api-3.1.1.jarAndWoodstox-core-asl-4.2.0.jar,If not, add the two packages to the project and include them in the package.
If there is still a problem, please check whether your project references both the stax2-api-3.1.1.jar and the stax-api-1.0.1.jar, if there is, then delete the stax-api-1.0.1.jar, then repackage and redeploy, OK!
Please add the source of this article.Http://blog.csdn.net/yy_love_my/article/details/43305021Oh! Thank you!