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