Weblogic 12c 版本,servlet 预加载失败

Weblogic 12c versions, servlet failed to preload

我挠头了大约一天,非常感谢任何帮助。

Servlet:"ServletAdaptor" failed to preload on startup in Web application: "PapWeb".java.lang.ArrayIndexOutOfBoundsException: 65281

编辑:当 运行 12.1.3 服务器时,我也看到了这个相关的(?)警告:

The application is using ServletContainerInitializer class com.sun.jersey.server.impl.container.servlet.JerseyServletContainerInitializer that is loaded from:file:/D:/servers/wls12130/oracle_common/modules/jersey-servlet-1.18.jar. This initializer overrides the one available in the system.

WEB_INF/lib 包括那些罐子:

下面的代码(在 weblogic.xml 中)解决了这个问题...

<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <container-descriptor>
        <prefer-web-inf-classes>**true**</prefer-web-inf-classes>
    </container-descriptor>
</weblogic-web-app>