Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Websphere PARENT_LAST Gives Exception Failed to load webapp

I am using PARENT_LAST in the Websphere Deployment. However, I'm getting exception : Failed to load webapp: javax.servlet.ServletContainerInitializer: Provider org.springframework.web.SpringServletContainerInitializer not a subtype.

Am I missing anything?

[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
like image 779
iLearn Avatar asked Mar 25 '18 23:03

iLearn


1 Answers

Thanks Jarid, I faced same issue and resolved by removing javax.servlet-api-3.0.1.jar from web app lib folder.

like image 193
Madhusudana Avatar answered Nov 06 '22 19:11

Madhusudana