File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes tomcat servlet runing problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat servlet runing problem" Watch "tomcat servlet runing problem" New topic

tomcat servlet runing problem

felix thomas
Ranch Hand

Joined: Jun 10, 2001
Posts: 89
I have tomcat 4.1.24 installed in my windows 98 SE machine.
Tomcat is working fine
I have purchased a Book Proffesional JSP second edition.
I was trying to run the MyfirstServlet example as described in the book

as written in the book
i made the following directories

wrote the code inside and it complied fine.
but when i tried to run the servler thru the URl as below
i get the below message what could be wrong
type Status report
message /ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.Myfirst
description The requested resource (/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.Myfirst) is not available.

Apache Tomcat/4.1.24

when i copied the Myfirst class file in the examples directory and changed the url it ran fine.
what am i doing worng please help
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12939
That has got to be the most common problem people have with Tomcat 4. When you run a servlet using the /servlet/ nomenclature, it actually goes through something called the "invoker" servlet.
There is a nice
tutorial on getting Tomcat 4 running here that discusses the invoker servlet. Or search the /conf/web.xml file for "invoker"
felix thomas
Ranch Hand

Joined: Jun 10, 2001
Posts: 89
thanks a lot Mr Brogden
I agree. Here's the link:
subject: tomcat servlet runing problem