Skip to content

alperenp/Java-REST-Web-Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A tutorial for developing basic web service and solution for some possbile problems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages