Websphere PARENT_LAST提供异常无法加载webapp

时间:2018-03-25 23:26:48

标签: spring maven spring-mvc websphere spring-ws

我在Websphere部署中使用 PARENT_LAST 。但是,我遇到异常:无法加载webapp:javax.servlet.ServletContainerInitializer:Provider org.springframework.web.SpringServletContainerInitializer不是子类型。

我错过了什么吗?

[3/25/18 19:10:50:512 EDT] 00000078 SystemErr     R com.ibm.ws.exception.RuntimeWarning: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: Failed to load webapp: javax.servlet.ServletContainerInitializer: Provider org.springframework.web.SpringServletContainerInitializer not a subtype
    Caused by: java.util.ServiceConfigurationError: javax.servlet.ServletContainerInitializer: Provider org.springframework.web.SpringServletContainerInitializer not a subtype
[3/25/18 19:10:50:524 EDT] 00000078 SystemErr     R     at java.util.ServiceLoader.fail(ServiceLoader.java:242)
[3/25/18 19:10:50:524 EDT] 00000078 SystemErr     R     at java.util.ServiceLoader.access$300(ServiceLoader.java:192)
[3/25/18 19:10:50:524 EDT] 00000078 SystemErr     R     at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:380)
[3/25/18 19:10:50:524 EDT] 00000078 SystemErr     R     at java.util.ServiceLoader$1.next(ServiceLoader.java:456)
[3/25/18 19:10:50:524 EDT] 00000078 SystemErr     R     at com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInitializers(WebAppImpl.java:532)
[3/25/18 19:10:50:524 EDT] 00000078 SystemErr     R     at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:406)
[3/25/18 19:10:50:524 EDT] 00000078 SystemErr     R     at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
[3/25/18 19:10:50:524 EDT] 00000078 SystemErr     R     at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:170)
[3/25/18 19:10:50:524 EDT] 00000078 SystemErr     R     ... 98 more

1 个答案:

答案 0 :(得分:0)

感谢Jarid,我遇到了同样的问题,并通过从Web应用程序li​​b文件夹中删除javax.servlet-api-3.0.1.jar来解决。