Hi,
Assuming that you are new to tomcat. I am about to give you solution.
1. place the
test servlet inside classes folder found in \ROOT\WEB-INF\classes(if your test servlet is having a package, comment it for testing).
2. call this test servlet
http://localhost:8080/root/servlet/test This should work.
But you better creat a context similar to root. For running your servlet.To achive that do the following steps.
1 .create a folder of any name inside "webapps "folder of tomcat.
2. map this in server.xml found in <tomcat_home>/conf folder(i.e, <Context path="/examples" docBase="webapps/examples" crossContext="false" debug="0" reloadable="true"/> copy this tag inside this file and replace "examples" by the folder name you have created)
3. see that folder created contains web-inf and classes folder and web.xml file similar to root context (make a copy of web.xml from root context if you want).
4. Place your files (servlet ,html,
jsp )and restart.
5.See that your servlet and helper class are placed inside classes folder always.
6. refer your context by url given below
http:\\localhost:8080\yourfolder\.....
-arun