获取 Servlet:"AxisServlet" 在 Weblogic 12c 中的 Web 应用程序 java.lang.StackOverflowError 中启动时无法预加载

Getting Servlet: "AxisServlet" failed to preload on startup in Web application java.lang.StackOverflowError in Weblogic 12c

我在 WLS 12c 上部署应用程序时出现以下错误

<Jun 8, 2020 11:02:03,120 AM IST> <Error> <HTTP> <BEA-101216> <Servlet: "AxisServlet" failed to 
preload on startup in Web application: "MyApplication1.0.war".
java.lang.WhosebugError
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.next(URLClassLoader.java:601)
    at java.net.URLClassLoader.hasMoreElements(URLClassLoader.java:626)
    at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:45)
    at sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:54)
    Truncated. see log file for complete stacktrace
>
 <Jun 8, 2020 11:02:08,698 AM IST> <Error> <Deployer> <BEA-149231> <Unable to set the activation state 
to true for the application "MyApplication1.0".
weblogic.application.ModuleException: java.lang.WhosebugError
    at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
    at weblogic.application.internal.flow.ModuleStateDriver.next(ModuleStateDriver.java:233)
    at weblogic.application.internal.flow.ModuleStateDriver.next(ModuleStateDriver.java:228)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
    Truncated. see log file for complete stacktrace
 Caused By: java.lang.WhosebugError
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.next(URLClassLoader.java:601)
    at java.net.URLClassLoader.hasMoreElements(URLClassLoader.java:626)
    at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:45)
    at sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:54)
    Truncated. see log file for complete stacktrace

下面是我的项目结构

同一项目在 Weblogic 11G 上运行良好

我能够解决问题。 对于有类似问题的人。 在标签中添加 weblogic.xml 和以下内容。

<container-descriptor>
       <prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>

此步骤将消除 Whosebug 错误。 稍后您可能会遇到一些依赖错误,可以根据需要解决。