The servlet goes into WEB-INF/classes.
No need to tinker with the classpath.
Basically, it your servlet is called "pack.MyServlet" (where "pack" is the package name), try the following:
1. Compile the servlet and put it into "classes", so that you get:
WEB-INF/classes/pack/MyServlet.class
(Pitfalls: make sure to maintain the "pack" directory, and also note that it's the compiled ".class", not the ".java" source).
2. Locate the file "WEB-INF/web.xml" , and add a "servlet-mapping" to it.
A simple "web.xml" looks like:
In your case, if you use the existing ROOT, you'll need to add those entries to the existing web.xml, which already has some entries.
Just note the order: first all "servelt" tags, then all "servlet-mappings", so it'll be something like:
< servlet > ...
< servlet > ...
< servlet-mapping > ...
< servlet-mapping > ...
3. Start up tomcat (to be on the safe side, make sure Tomcat's not running while you do the above changes. Start it only after everything's ready. It's an overkill, but it'll do for starters).
4. Point you browser to:
http://localhost:8080/MyServlet Hope this helps... if not, could you please quote the exact error message issued by tomcat ?