You need to assign a servlet name - why do you say you don't have one? Just use DaemonHttpServlet as the name if you don't have any other preference.
The servlet-class element must contain the fully qualified class name. If the class has no package, it is already correct as is.
The class and the web.xml file can be placed in any web application. For example, if you have Tomcat installed at $TOMCAT_HOME, then the files should be
$TOMCAT_HOME/webapps/test/WEB-INF/web.xml
$TOMCAT_HOME/webapps/test/WEB-INF/classes/DaemonHttpServlet.class
where "test" can be any web application under $TOMCAT_HOME/webapps (such as "examples", if you don't want to create a new one).
------------------
Phil Hanna
Author of :
JSP: The Complete Reference
Instant Java Servlets