how are you writing the web app?
are you using the javaee libraries and glassfish server?
You've got to do some mapping.
I am writing stuff like that now and I found that after
Tomcat 4 you need to add some extra stuff to the web.xml file when writing the app.
look at this one.
if you call localhost:8080/Servlet1, this calls a goodie by the name of
test and the goodie by the name of test is actually a
servlet class called Servlet1
if you call localhost:8080/dogfood, this calls a goodie by the name of test and the goodie by the name of test is actually a servlet class called Servlet1
url-patterns leads to servlet-name which leads to servlet-class.
hope it helps