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

servlet problem- - weird

Munish Dabra
Greenhorn

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.

Error:
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
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2578

Try
/myapp1/servlet/HelloWorld
HTH,
- Manish
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: servlet problem- - weird