This week's book giveaway is in the NodeJS forum.
We're giving away four copies of Serverless Applications with Node.js and have Slobodan Stojanovic & Aleksandar Simovic on-line!
See this thread for details.
Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

executing servlets in Tomcat  RSS feed

Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need clarification regarding executing servlets in Eclipse and Tomcat
i have installed Eclipse 2.1.2 on my Linux machine in the path:
i am using Tomcat 5 to run servlets and have installed tomcat
in the path opt/tomcat. also i am using Sysdeo Tomcat Plug-in for
now i have written a HTML program that contains a form with a
simple textbox. once the user enters his name and clicks on the submit
button, the result is his name with a greeting.
i have put my HTML file, program.html in the following location:
and i have put my servlet file in the location:
now when i open my Mozilla browser and type:
http://localhost:8080/program.html it works fine and get my form, but
when i enter a name and click on the submit button, i get the message
HTTP Status 404
the requested resource is not avaialble
i am really unable to figure out what might be the problem.
please help.thanks in advance.
Author and all-around good cowpoke
Posts: 13078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a common problem - do a search for 404 to see LOTS of discussions. A short summary:
1. ALWAYS put your servlet class and all auxiliary classes in a package
2. NEVER use a url with /servlet/
3. LEARN how to configure the web.xml file according to the servlet API
It means our mission is in jeapordy! Quick, read this tiny ad!
global solutions you can do in your home or backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!