Environment: linux+weblogic10.3.0.0
In the project's Web-inf directory, there are the following weblogic.xml files
<?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:// Java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd ">
< container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</ Container-descriptor>
</weblogic-web-app>
WebLogic, if published under the Linux command line, stop and restart is normal.
If you publish in the console, click Update, and then at the point activate changes, error, log as follows:
<2016-3-29 06:08 P.M. 55 sec cst> <Warning> <HTTP> <BEA-101162> <user defined Listener Org.springframework.web.context.ContextLoaderListener failed: Org.springframework.beans.factory.BeanDefinitionStoreException:Unexpected exception parsing XML document from file [/ Opt/bea/user_projects/domains/domain7006/ceaccsvr/web-inf/classes/applicationcontext-cxf.xml]; Nested exception is Java.lang.LinkageError:loader constraint Violation:loader (instance of Weblogic/utils/classloaders
/changeawareclassloader) previously initiated loading for a different type with name "Org/w3c/dom/userdatahandler". Org.springframework.beans.factory.BeanDefinitionStoreException:Unexpected exception parsing XML document from file [/ Opt/bea/user_projects/domains/domain7006/ceaccsvr/web-inf/classes/applicationcontext-cxf.xml]; Nested exception is Java.lang.LinkageError:loader constraint Violation:loader (instance of Weblogic/utils/classloaders /changeawareclassloader) previously initiated LoAding for a different type with name ' Org/w3c/dom/userdatahandler ' at Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions ( xmlbeandefinitionreader.java:420) at Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions (Xmlbeandefinitionreader.java : 342) at Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions ( xmlbeandefinitionreader.java:310) at Org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions ( abstractbeandefinitionreader.java:143) at Org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions ( abstractbeandefinitionreader.java:178) truncated. Complete StackTrace java.lang.LinkageError:loader constraint Violation:loader (instance of Weblogic/uti Ls/classloaders/changeawareclassloader) previously initiated loading for a different type with name "org/w3c/dom/ Userdatahandler "at Java.lang.ClassLoader.defineClass1 (Native method) at Java.lang.ClassLoader.defineClass (classloader.java:620) at Java.security.SecureClassLoader.defineClass (secureclassloader.java:124) at Weblogic.utils.classloaders.GenericClassLoader.defineClass (genericclassloader.java:335) at Weblogic.utils.classloaders.GenericClassLoader.findLocalClass (genericclassloader.java:288) truncated. The log file for complete StackTrace
There is no doubt that the package conflict, I find under my jar bag which contains "Org/w3c/dom/userdatahandler", and finally found the Jaxen-1.1.2.jar, deleted and then point activate Changes, OK