Hi
I am using
tomcat 5.0.28 and jdk1.5.0_15
Using
http://localhost:8080 -> tomcat home page is open
but when I type
http://localhost:8080/ch1/serv1 at browser it is giving http error 404
type Status report
message /ch1/serv1
description The requested resource (/ch1/serv1) is not available
I think my folder structure is proper
and content of web-XML is shown below
<web-app xmlns = "http://java.sun.com/xml/ns/j2ee"
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation = "http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version = "2.4" >
<
servlet>
<servlet-name>Chapter1 servlet</servlet-name>
<servlet-class>Ch1Servlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Chapter1 servlet</servlet-name>
<url-pattern>/serv1</url-pattern>
</servlet-mapping>
</web-app>
I tried uncommenting the line in conf/web-xml (servlet-mapping)
Then also it is not working.
please help
Thanks in advance