• Post Reply Bookmark Topic Watch Topic
  • New Topic

servlet problem- - weird  RSS feed

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try
/myapp1/servlet/HelloWorld
HTH,
- Manish
 
When it is used for evil, then watch out! When it is used for good, then things are much nicer. Like this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!