File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes problem with running servlets using tomcat3.2.4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "problem with running servlets using tomcat3.2.4" Watch "problem with running servlets using tomcat3.2.4" New topic

problem with running servlets using tomcat3.2.4

Kishore Dandu
Ranch Hand

Joined: Jul 10, 2001
Posts: 1934
I have put my class file in //install_dir/webapps/Root/classes directory.
When I enter http://localhost/HelloWWW in the browser I get following error in the server dos window.
2002-07-04 14:51:09 - Ctx( ): 404 R( + /HelloWWW + null) null
Some one suggested me to edit web.xml. But according to core servlets book it is not needed for this basic servlet.
Urgent help needed.

SCJP, blog
sim sim
Ranch Hand

Joined: Jun 05, 2002
Posts: 55
Hi Kishore,
The path should be
Sim Sim
chanoch wiggers
Ranch Hand

Joined: May 24, 2001
Posts: 245
also the url to the servlet if you are not going to modify the web.xml file should be
so that tomcat knows to look for a servlet

chanoch<p><a href="" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
bernd pier
Ranch Hand

Joined: Jun 21, 2002
Posts: 30
hey chanoch
excuse my simple question,but if a want to start a servlet with http://localhost:8080/servlet/servletname
it won`t go.
when i call the servlet with
yiiippeee no problems.
if the first possibility is a general way to call a servlet,i think it had to work without configure the server.xml.
and if i had to configure the server.xml, what must i configure?
you see i`m just a beginner in servlets, so i`m grateful for help.
Kishore Dandu
Ranch Hand

Joined: Jul 10, 2001
Posts: 1934
It worked.
Thanks a bunch for the suggestions. I am gonna crack this for couple of days.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Kishore, how you access your servlet depends on where you put your clases. If you access it as
Then your classes must have been in TomcatDirectory\webapps\examples\WEB-INF\classes folder.

So much trouble in the world -- Bob Marley
I agree. Here's the link:
subject: problem with running servlets using tomcat3.2.4
It's not a secret anymore!