• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

servlet problem- - weird

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try
/myapp1/servlet/HelloWorld
HTH,
- Manish
 
reply
    Bookmark Topic Watch Topic
  • New Topic