Put the <load-on-startup> tags after the <init-param> tags.

----- Original Message ----- 
From: "Phil Campaigne" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 18, 2004 4:30 PM
Subject: Servlet won't run init()


> 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-clas
s>
>          <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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to