A simple test, is little program called "HitServlet", the code could be something like
this .
You might need to compile it, or get the class file
here.
In Your Tomcat/webapps, You create a library called "hitservlet". Under this You further create some other libray so You end up with a structure like this:
Tomcat/webapps/hitservlet/images/tomcat.gif Tomcat/webapps/hitservlet/META-INF/context.xml Tomcat/webapps/hitservlet/WEB-INF/classes/HitServlet.class Tomcat/webapps/hitservlet/WEB-INF/lib/ Tomcat/webapps/hitservlet/WEB-INF/web.xml Tomcat/webapps/hitservlet/index.html
Next You have to do these modifications, using a simple text editor:
Apache "httpd.conf" | Tomcat "uriworkermap.PROPERTIES " |
JkMount   /hitservlet|/*            worker_name | /hitservlet/* =            worker_name |
And now to the test. In order to test it You have to restart Apache and Tomcat.
Do this:
Start the browser and put in the url:
"localhost/hitservlet"
and next
"localhost/hitservlet/HitServlet"
Netbeans