解决 weblogic poi3.9 报错 a different type with name "javax/xml/namespace/QName"

解决 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"

 

weblogic.xml

<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app xmlns:wls="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/web-app_2_5.xsd http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
        <wls:weblogic-version>10.3</wls:weblogic-version>
        <wls:context-root>job</wls:context-root>
        <container-descriptor>
     <prefer-application-packages>
      <package-name>org.apache.commons.*</package-name>
      <package-name>org.apache.log4j.*</package-name>
      <package-name>org.slf4j.*</package-name>
    </prefer-application-packages>
    <!-- <prefer-web-inf-classes>true</prefer-web-inf-classes> -->
    </container-descriptor>
</wls:weblogic-web-app>
View Code

 

posted @ 2017-07-06 17:47  Earic  阅读(2483)  评论(0编辑  收藏  举报