Looking for a JavaEE Architect or Potential Tech Co-Founder?
Please don't hesitate to contact me.

How to enable Jersey Servlet in web.xml

To enable jersey web service in your web application, simply copy and paste the code below in your web.xml file.

<servlet>
 <servlet-name>Jersey REST Service</servlet-name>
 <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
 <init-param>
  <param-name>com.sun.jersey.config.property.packages</param-name>
  <param-value>com.ipiel</param-value>
 </init-param>
 <load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
 <servlet-name>Jersey REST Service</servlet-name>
 <url-pattern>/api/*</url-pattern>
</servlet-mapping>
How to enable Jersey Servlet in web.xml How to enable Jersey Servlet in web.xml Reviewed by Edward Legaspi on Monday, September 17, 2012 Rating: 5

No comments:

Powered by Blogger.