This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Help Needed New to Tomcat" Watch "Help Needed New to Tomcat" New topic
Author

Help Needed New to Tomcat

priyankaak samiksha
Greenhorn

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
http://sit.iitkgp.ernet.in/~nnanda/config.html
or mail me at Niranjan.Nanda@sit.iitkgp.ernet.in


Regards<br />--<br />Niranjan Nanda<br />Consultant<br />Capgemini Consulting India <br />Mumbai<br />Phone: 9324951476
 
GeeCON Prague 2014
 
subject: Help Needed New to Tomcat