Trying to deploy a web app on websphere 3.5.5 but it results in null pointer exception at JAXRSServletContainerInitializer.
Below is the error log:-
[7/4/17 12:06:46:151 IST] 00000088 SystemErr R Caused by: java.lang.NullPointerException
[7/4/17 12:06:46:151 IST] 00000088 SystemErr R at com.ibm.ws.jaxrs.webcontainer.JAXRSServletContainerInitializer.registerApplication(JAXRSServletContainerInitializer.java:455)
[7/4/17 12:06:46:151 IST] 00000088 SystemErr R at com.ibm.ws.jaxrs.webcontainer.JAXRSServletContainerInitializer.onStartup(JAXRSServletContainerInitializer.java:669)
[7/4/17 12:06:46:151 IST] 00000088 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInitializers(WebAppImpl.java:619)
[7/4/17 12:06:46:151 IST] 00000088 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:409)
[7/4/17 12:06:46:152 IST] 00000088 SystemErr R at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
[7/4/17 12:06:46:152 IST] 00000088 SystemErr R at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:170)
I have provided below config also at server level:-
a) Set the com.ibm.websphere.jaxrs.server.DisableIBMJAXRSEngine
custom JVM property on the application server with a value of true.
b) WebContainer custom property com.ibm.ws.webcontainer.emptyServletMappings
to true
c) Also set the Class loader order dropdown to: Classes loaded with local class loader first (parent last)
for the app.