I am using Jersy to develeop REST webservices, this is my simple code:
@GET
@Path(\"/retrieveCustomerInformation/{jsonString}\")
@Produces(MediaType.APPLICAT
Add dependency from the reference
Jersey Application Deployment and Runtime Environments
in your web.xml
jersey-serlvet
org.glassfish.jersey.servlet.ServletContainer
jersey.config.server.provider.packages
com.rest.portal
jersey.config.server.provider.scanning.recursive
false
jersey.config.server.provider.classnames
com.rest.portal.HelloWord
1
jersey-serlvet
/rest/*
In Jersey 1.x only using the
com.sun.jersey.spi.container.servlet.ServletContainer
In 2.x series use
org.glassfish.jersey.servlet.ServletContainer
And add necessary jersy jar files