I've got it, the following needs to be added to web.xml in order for both servlet and servlets to be valid paths. This basically loads two invoker classes with different docroots.
Add this right after the current invoker
&servlet&
&servlet-name&invoker2&/servlet-name&
&servlet-class&org.apache.catalina.servlets.InvokerServlet&/servlet-class&
&init-param&
&param-name&debug&/param-name&
&param-value&0&/param-value&
&/init-param&
&load-on-startup&2&/load-on-startup&
&/servlet&
Add this right after the current invoker mapping
&servlet-mapping&
&servlet-name&invoker2&/servlet-name&
&url-pattern&/servlet/*&/url-pattern&
&/servlet-mapping&
Once this is done anything in WEB-INF/classes will work with servlet or servlets in url.
For example see:
http://server11.virtual-hosting.ca/servlet/IsItWorking
and
http://server11.virtual-hosting.ca/servlets/IsItWorking
Please note that this is with Tomcat 4.0.3
Add this right after the current invoker
&servlet&
&servlet-name&invoker2&/servlet-name&
&servlet-class&org.apache.catalina.servlets.InvokerServlet&/servlet-class&
&init-param&
&param-name&debug&/param-name&
&param-value&0&/param-value&
&/init-param&
&load-on-startup&2&/load-on-startup&
&/servlet&
Add this right after the current invoker mapping
&servlet-mapping&
&servlet-name&invoker2&/servlet-name&
&url-pattern&/servlet/*&/url-pattern&
&/servlet-mapping&
Once this is done anything in WEB-INF/classes will work with servlet or servlets in url.
For example see:
http://server11.virtual-hosting.ca/servlet/IsItWorking
and
http://server11.virtual-hosting.ca/servlets/IsItWorking
Please note that this is with Tomcat 4.0.3