Weblogic 12.1.1和12.1.2

时间:2014-06-05 15:00:53

标签: java-ee weblogic

我已将weblogic从12.1.1升级到12.1.2,并且启动期间应用程序启动失败。它告诉

  

weblogic.utils.compiler.ToolFailureException:在weblogic.xml中启用<prefer-application-packages>时,无法指定<prefer-application-resources><prefer-web-inf-classes>

这是我的weblogic.xml

    <?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app">
  <container-descriptor>
        <prefer-web-inf-classes>false</prefer-web-inf-classes>
        <servlet-reload-check-secs>-1</servlet-reload-check-secs>
    </container-descriptor>
    <session-descriptor>
        <http-proxy-caching-of-cookies>true</http-proxy-caching-of-cookies>
    </session-descriptor>
    <jsp-descriptor>
        <page-check-seconds>-1</page-check-seconds>
        <working-dir>./work</working-dir>
        <backward-compatible>true</backward-compatible>
    </jsp-descriptor>
    <library-ref>
        <library-name>jstl</library-name>
        <specification-version>1.1</specification-version>
        <implementation-version>1.1.2</implementation-version>
        <exact-match>true</exact-match>
    </library-ref>
</weblogic-web-app>

为什么它不起作用?

1 个答案:

答案 0 :(得分:0)

看起来很糟糕:http://docs.oracle.com/cd/E24329_01/web.1211/e21049/weblogic_xml.htm#WBAPP659

它不能同时部署描述符设置&#34;相同&#34;配置(多余)。