File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes servlet problem- - weird Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "servlet problem- - weird" Watch "servlet problem- - weird" New topic

servlet problem- - weird

Munish Dabra

Joined: Nov 18, 2003
Posts: 19
Hey dudes!
I can run all examples on Tomcat.but when i try to run my own servlets ,it is giving error with every servlet i m trying to run.I tried everything i cooldn't figure it out why itz happening.
I m using Apache Tomcat/4.1.29 and j2sdk1.4.2_02 on windows 200 server.
help me out...I m unable to proceed without this.

HTTP Status 404 - /myapp1/HelloWorld
type Status report
message /myapp1/HelloWorld
description The requested resource (/myapp1/HelloWorld) is not available.

Apache Tomcat/4.1.29

Munish Dabra<br />SCJP , SCWD
Brian Smith
Ranch Hand

Joined: Oct 26, 2002
Posts: 232
hi manas,
looks like "myapp1" is your context root. have you tried looking at your servlet mapping in web.xml file. Have you mapped your "HelloWorld" servlet in web.xml. i think you need to work on your web.xml file. you should be fine.
good luck
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Manas Dabra,
If u provide us with the desired servlet mapping name and ur real servlet location, then we can help u in mappng them in the web.xml deployment descriptor....
[ December 10, 2003: Message edited by: Ko Ko Naing ]

Co-author of SCMAD Exam Guide, Author of JMADPlus
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2591

- Manish
I agree. Here's the link:
subject: servlet problem- - weird
jQuery in Action, 3rd edition