We help IT Professionals succeed at work.
Get Started

tomcat 5.5.9 setup problem

lharts asked
Last Modified: 2008-03-10
i am trying to setup tomcat server on my pc.
i can get access to localhost:8080/Hello.html so the server by all accounts seems to be up and running properly...

i am following the http://www.moreservlets.com/Using-Tomcat-4.html#Test-Server tutorial and now i'm trying to get a sucessful result to test 1 (about 2/3's of the way down).

I have created the \ROOT\WEB-INF\classes folder and placed a HelloServlet.java file (downloaded from the tutorial website) in teh created folder. i have no problems compiling the file to give me the HelloServlet.class file (which is in the same folder).

however this is where my problems start...
i should then be able to run the servlet by goin to the url
but instead of seeing the lovely 'hello' that should be displayed i get a horrible http 404 error (file not found).

To confuse matters slightly more, i can access the servlet-examples (HelloWorldExample in particular) that came with tomcat, \servlet-examples\WEB-INF\classes holds the .java and .class files and this servlet works properly... i hav even tried to copy those two files to the \ROOT\WEB-INF\classes\ folder and see if i can access them thru http://localhost:8080/servlet/HelloWorldExample but to no avail, again i get my lovely 404 error...

i hope someone can help, and all help no matter how little or large will be appreciated!!!



Watch Question
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE