File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Help Needed New to Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Help Needed New to Tomcat" Watch "Help Needed New to Tomcat" New topic

Help Needed New to Tomcat

priyankaak samiksha

Joined: Mar 12, 2004
Posts: 3
I have tried to run examples from HanuMant DeshMukh Book
I just copied chapter01 directory from the CD and placed it under webapps directory.
when I typed the URL http://localhost:8080/chapter01/servlet/HelloWorldServlet it displays HelloWorld.
But when I created my own directory chap1 under webapps and copied the same contents in chapter01 directory i got 404 error. Can any one help what could be the problem. I checked the web.xml url mapping. but the path is ok.
[ March 12, 2004: Message edited by: priyankaak samiksha ]
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

prove to us the mapping is ok.

show what your directory structure looks like, what (relevant) entries are in web.xml, and how are you calling the servlet?

Also, you know about the Invoker Servlet ?
N Nanda
Ranch Hand

Joined: Feb 09, 2004
Posts: 62
The 404 error simply means that the resources are not available. That means the contents in web.xml is not working for directory you have created. Moreover you have not written which version of Tomcat you are using. anyway for Configuration of tomcat for your own context, read the documents in the site
or mail me at

Regards<br />--<br />Niranjan Nanda<br />Consultant<br />Capgemini Consulting India <br />Mumbai<br />Phone: 9324951476
I agree. Here's the link:
subject: Help Needed New to Tomcat
It's not a secret anymore!