aspose file tools*
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
Author

tomcat servlet runing problem

felix thomas
Ranch Hand

Joined: Jun 10, 2001
Posts: 89
hi,
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
webapps\ch03\WEB-INF\classes\com\wrox\projsp\ch03\myfirstwebapp

wrote the Myfirst.java code inside and it complied fine.
but when i tried to run the servler thru the URl as below
http://localhost:8080/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.Myfirst
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
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
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"
Bill
felix thomas
Ranch Hand

Joined: Jun 10, 2001
Posts: 89
thanks a lot Mr Brogden
 
 
subject: tomcat servlet runing problem