Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Servlet won't run init()

phil campaigne

2004-02-18

Replies:

Hello,
I want a servlet to run its init() method when I start Tomcat. I put
the following entry in web.xml but that doesn't do it:
<servlet>
   <servlet-name>PgConnectionPoolServlet</servlet-name>
   <display-name>PgConnectionPoolServlet</display-name>
 
<servlet-class>com.op.reporter_manager.PgConnectionPoolServlet</servlet-class>
     <load-on-startup>1</load-on-startup>
     <init-param>
     <param-name>debug</param-name>
     <param-value>5</param-value>
     </init-param>

  </servlet>

<servlet-mapping>
   <servlet-name>PgConnectionPoolServlet</servlet-name>
   <url-pattern>/PgConnectionPoolServlet</url-pattern>
 </servlet-mapping>

*****************************************************************
I will appreciate any ideas on how to fix it?
thanks,
Phil


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.