web.xml examples for all versions of Servlet

1. Servlet 3.1

2. Servlet 3.0

3. Servlet 2.5

4. Servlet 2.4

5. Servlet 2.3

[STARTER] JAX-RS: Jersey + Servlet 3.0 + Maven + Tomcat

Steps to configure a JAX-RS project that runs on Tomcat (here 8), Maven, Servlet 3.0 and having Jersey as a Reference Implementation. 1. Maven POM.XML dependencies:

  2. web.xml (src/main/webapp/WEB-INF)  

3. Application class (under: src/main/java/com/vvirlan/java/ws

4. Resource class (which is the actual web service endpoint):  

5. Build the…