This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, I just bought Manning book and start studying and tinkering around with tomcat I am running Windows XP Pro, j2sdk 4.1, tomcat 4.1 I followed the instructions in Appendix A of manning book. Tomcat seems to be running fine since I can view he default index.jsp file at ROOT by http://localhost:8080 I copied chapter01 files to webapp and try to view it by http://localhost:8080/chapter01/servlet/HelloWorldServlet and I get an error from Apache Tomcat. http status 404 - /chapter01/servlet/HelloWorldServlet. type status report message /chapter01/servlet/HelloWorldServlet description the requested resource (/chapter01/servlet/HelloWorldServlet) is not available I checked my CATALINA_HOME, JAVA_HOME, CLASSPATH. file structure. I think everything is fine. Help please...I am running out of things to check
<quote> I tried http://localhost:8080/chapter01/HelloWorldServlet </quote> i think Sam's suggestion on seeing where '..HelloWorldServlet maps to.' is to look for something like the following in your web.xml. <servlet-mapping> <servlet-name>HelloWorldServlet</servlet-name> <url-pattern>/HelloWorldServlet</url-pattern> </servlet-mapping> if there isn't then try to append it after </servlet>, restart tomcat, and see how it works. this associates the <url-pattern> with the <servlet-name> you defined in <servlet>...</servlet> so you can use the url you just tried. hope this helps. [ January 16, 2003: Message edited by: boyet silverio ]