- Make sure your Eclipse has the Eclipse JST Server Adapters (Apache Tomcat, JOnAS, J2EE)
- Follow the Guide
- If you encounter a problem in Step 3 of Guide, please see possible solution
- Install Web Tools Platform on your Eclipse (If you cannot create Dynamic Web Project)
- Create Dynamic Web Project
- Don't forget to change build path to src/main/java
- Follow instructions in guide
- Tutorial for Web Application and explanation
- One may need to change pom file because it uses old version of dependencies. Here is an updated version
- Here is web.xml file. Note that the info under
<servlet-mapping>
tag changing the url pattern of rest service. - If you come up with a SEVERE: Allocate exception for servlet [Jersey RESTful Application]java.lang.ClassNotFoundException: org.glassfish.jersey.servlet.ServletContainer try to do following solution for eclipse in second answer