Hi All,
I am trying to run one simple web application. I have imported required jar in which i have defined my
servlet class.
and defined servlet name and complete path of class. But when I am running my web application on
tomcat it gives me errror like servlet not found.
Please give me some pointers it will be appreciated. Thanks in advance.
Thanks
Navneet
The web.xml file is as below
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>HelloRest</display-name>
<servlet>
<servlet-name>JerseyTest</servlet-name>
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>JerseyTest</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
I have checked location of following class in my jar it is fine.
com.sun.jersey.spi.container.servlet.ServletContainer