Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 1.76 KB

File metadata and controls

16 lines (15 loc) · 1.76 KB

Tomcat Installation on Eclipse

  1. Make sure your Eclipse has the Eclipse JST Server Adapters (Apache Tomcat, JOnAS, J2EE)
  2. Follow the Guide
  • If you encounter a problem in Step 3 of Guide, please see possible solution

Creating First Web Service

  1. Install Web Tools Platform on your Eclipse (If you cannot create Dynamic Web Project)
  2. Create Dynamic Web Project
  • Don't forget to change build path to src/main/java
  1. 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 pom
  • Here is web.xml file. Note that the info under <servlet-mapping> tag changing the url pattern of rest service. webxml
  • 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