CXF webService call error: "Cannot create a secure XMLInputFactory", cxfxmlinputfactory

Source: Internet
Author: User

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!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.