Skip to content

Servlet mapping not found error while deploying JAX RS application to web sphere 8.5

I am new to web services. have developed a simple rest web svc in java using Eclipse, Tomcat following this link. Application successfully runs on Tomcat but when i deploy it to IBM WebSphere 8.5.5. It deploys successfully but fails to start. I know its something with my Web.xml so i am adding it for rectification. Tried this but to no avail.

<web-app xmlns:xsi="" xmlns="" xsi:schemaLocation="" version="3.1">
    <servlet-name>Java WS</servlet-name>
  <servlet-name>Java WS</servlet-name>

Web Sphere log generated when i try to start application is:-

0000112c ApplicationMg A   WSVR0204I: Application: TestWS_war  Application build level: Unknown
0000112c webapp        E 
constructServletMappings SRVE0303E: Servlet name for the servlet mapping /* could not be found.
0000112c DeployedAppli W   WSVR0206E: Module, TestWS.war, of application, TestWS_war.ear/deployments/TestWS_war, 
failed to start
0000112c ApplicationMg W   WSVR0101W: An error occurred starting, TestWS_war
0000112c ApplicationMg A   WSVR0217I: Stopping application: TestWS_war
0000112c ApplicationMg A   WSVR0220I: Application stopped: TestWS_war
0000112c CompositionUn E   WSVR0194E: Composition unit WebSphere:cuname=TestWS_war in BLA 
WebSphere:blaname=TestWS_war failed to start.
0000112c MBeanHelper   E   Could not invoke an operation on object: 
because of an mbean exception: 
SRVE0303E: Servlet name for the servlet mapping /* could not be found.

I have tried both Class loading options Parent First and Parent Last but to no avail.


It’s giving the error that “org.glassfish.jersey.servlet.ServletContainer” is missing in the Class path. Because of which the application is not starting.

See the version of Jersey that is compatible with WAS 8.5.5? (I think it’s Jersey 1.x). The corresponding library needs to be used.