Thank you Swastik Dey for helping me come this far.
The system I am working on is an already operational system and is saved in :-
C:\Tomcat5027\webapps\ROOT\publications
This is why I am requesting that we use that.
So right now I have
web.xml in C:\Tomcat5027\webapps\ROOT\publications\WEB-INF\
HelloWorld.class in C:\Tomcat5027\webapps\ROOT\publications\WEB-INF\classes\test