Webservice (CXF), POI (Excel) operations deployed to WebLogic conflict resolution

Source: Internet
Author: User

These days to deploy WebService and POI operations on the WebLogic, there are numerous problems, there are various conflicts.

No problem deploying to Tomcat

Version:

Jdk:6

Tomcat:6

weblogic:10.3.3

cxf:2.6

poi:3.9

Conflict 1:

Org.apache.cxf.binding.soap.SoapFault:Cannot Create a secure xmlinputfactory

Under the Web-inf folder, add Weblogic.xml

<?xml version= "1.0" encoding= "UTF-8"?>
<weblogic-web-app xmlns= "Http://www.bea.com/ns/weblogic/weblogic-web-app"
Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"
xsi:schemalocation= "Http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/ Weblogic-web-app/1.0/weblogic-web-app.xsd ">
<container-descriptor>
<index-directory-enabled>true</index-directory-enabled>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>

Conflict 2:

Java.lang.ClassCastException:weblogic.xml.jaxp.RegistryDocumentBuilderFactory at Javax.xml.parsers.DocumentBuilderFactory

Jar package conflict caused, most of the information on the Internet is Xml-apis conflict, removed from the war package Xml-apis, this site also said very clearly

http://forum.spring.io/forum/spring-projects/container/13517- Java-lang-classcastexception-weblogic-xml-jaxp-registrydocumentbuilderfactory

Conflict 3:

Java.lang.LinkageError:loader constraint Violation:loader (instance of weblogic/utils/classloaders/ Changeawareclassloader)
Previously initiated loading for a different type with name "Javax/xml/namespace/qname"

Also jar package with WebLogic conflict, this conflict is Stax Stax-api, delete

Conflict 4:

Java.lang.LinkageError:loader constraint Violation:when Resolving interface method "Org.w3c.dom.Node.setUserData ( ljava/lang/string; Ljava/lang/object; Lorg/w3c/dom/userdatahandler;) Ljava/lang/object; "The class loader (instance of weblogic/utils/classloaders/ Changeawareclassloader) of the current class, Org/apache/cxf/staxutils/staxutils, and the class loader (instance of) for Resolved class, Org/w3c/dom/node, with different class objects for the type Erdatahandler;)

Package conflicts, removing XMLBeans packages, resolving issues

Webservice (CXF), POI (Excel) operations deployed to WebLogic conflict resolution

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.