Weblogic和Java相关

时间:2018-07-10 09:45:40

标签: java weblogic

嗨,我正在尝试在weblogic 12.1中部署Web应用程序,但部署失败,并且出现如下所述的错误

    Error is: "weblogic.application.ModuleException: java.lang.LinkageError: loader constraint violation: loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) previously initiated loading for a different type with name "javax/ws/rs/core/FeatureContext""
    weblogic.application.ModuleException: java.lang.LinkageError: loader constraint violation: loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) previously initiated loading for a different type with name "javax/ws/rs/core/FeatureContext"

Weblogic.xml如下

 <!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN""http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd"> 
<weblogic-web-app>
    <context-root>/IntegrationServer</context-root>
    <session-descriptor>
       <session-param>
         <param-name>URLRewritingEnabled</param-name>
         <param-value>false</param-value>
       </session-param>
       <session-param>
         <param-name>CookiesEnabled</param-name>
         <param-value>true</param-value>
       </session-param>
     </session-descriptor>
     <container-descriptor>
       <show-archived-real-path-enabled>true</show-archived-real-path-enabled>

       <!-- <prefer-web-inf-classes>true</prefer-web-inf-classes> -->                              

       <prefer-application-packages>
         <package-name>org.springframework.*</package-name>
         <package-name>org.opensaml.*</package-name>
         <package-name>org.bouncycastle.*</package-name>
         <package-name>org.joda.time.*</package-name>
         <package-name>org.apache.ws.commons.schema</package-name>
         <package-name>org.glassfish.jersey.media.sse.*</package-name>
         <package-name>javax.ws.rs.*</package-name>
       </prefer-application-packages>
     </container-descriptor>
</weblogic-web-app>

有人可以给我一些建议吗?

0 个答案:

没有答案