How to create simple webapp using Jersey

Steps

  • Use the following command to create web-app
    mvn archetype:generate -DarchetypeArtifactId=jersey-quickstart-webapp -DarchetypeGroupId=org.glassfish.jersey.archetypes -DinteractiveMode=false -DgroupId=com.example -DartifactId=simple-service-webapp -Dpackage=com.example -DarchetypeVersion=2.24
    
  • Give following command to build
    mvn clean install
    
  • Deploy on tomcat server and run, service should be up from the below URI
    http://localhost:8080/simple-service-webapp/webapi/myresource
    
Advertisements
How to create simple webapp using Jersey

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s