Hey guys, i'm really new to this servlet stuff and need a bit of help. I wrote a simple helloworld servlet below but it won't display. Below is a detailed account of what is in each of my files and the location of each file. NOTE:I then followed Tomcat installation tutorial at http://www.massless.org/Default.asp?article=1 pretty close!
Now, my TOMCAT root is at: C:\Tomcat 4.1\
I created the war file (test.war) no problem and put it in the {TOMCAT root}\webapps
---------------------------------------------------------------- TOMCAT ERROR ---------------------------------------------------------------- HTTP Status 404 - /test/HelloWorldServlet type Status report message /test/HelloWorldServlet description The requested resource (/test/HelloWorldServlet) is not available.
---------------------------------------------------------------- SE RVER.XML ---------------------------------------------------------------- Then I added the following entry into server.xml ABOVE the other context path item in the file: <Context path="/test" docBase="webapps/test" crossContext="false" debug="0" reloadable="true"/>
------------------------------------------------------- --------- WEB.XML -------------------------------------------------------------- -- I then added the following entry into my web.xml file and stuck it in C:\Tomcat 4.1\webapps\test\WEB-INF: <web-app> <display-name>Hello World!</display-name> <session-timeout>30</session-timeout> & lt;servlet> <servlet-name>Hello World Servlet</servlet-name> <servlet-class>HelloWorldServlet</servlet -class> <load-on-startup>1</load-on-startup> <init-param> & lt;param-name>name</param-name> <param-value>value</param-valu e> </init-param> </servlet> </web-app>