WebLogic Publishing Point Activate changes error: Java.lang.LinkageError:loader constraint Violation:loader

Source: Internet
Author: User
Tags truncated
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



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.