Hi, I have been following the instructions in the tomcat faq to start a
servlet whenever tomcat starts, but with no luck, can someone give me a
light?
When-ever I start tomcat, the console should beam out a message which says
"Servlet Loaded" and set a "appServerPath" variable, however, its just
simply not load.
I can run the servlet manually with no problem, the console will beam out
the message, and set that variable

here is the context path in the server.xml of tomcat:
<Context path="/myDir"
                 docBase="C:\myDir"
                 crossContext="true"
                 debug="0"
                 reloadable="true"
                 trusted="false" >
</Context>

Here is the web.xml in the C:\myDir\WEB-INF\:
which dezscribes the servlet to load:
<servlet>
  <servlet-name>servletInit_newsgroup</servlet-name>
  <servlet-class>com.myservlet.servletInit_newsgroup</servlet-class>
        <load-on-startup>1</load-on-startup>
</servlet>

the servlet is located in C:\myDir\WEB-INF\classes\com\myservlet\

am I missing something?

Thanks!


servletInit_newsgroup.java

Reply via email to