Re: Servlet won't run init()

2004-02-19 Thread Phil Campaigne
QM wrote: : 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: : [snip] Please, humour me: put load-on-startup after init-param. I believe that's the order per the servlet spec. Humour me, part 2: verify the

RE: Servlet won't run init()

2004-02-19 Thread Shapira, Yoav
Howdy, public void init(ServletConfig cf) throws ServletException { Either override init() instead of init(ServletConfig), or call super.init(cf) as your first line. As the others suggested, a ServletContextListener is not a bad place to put this time of code either. Yoav Shapira This

Re: Servlet won't run init()

2004-02-19 Thread Phil Campaigne
Shapira, Yoav wrote: Howdy, public void init(ServletConfig cf) throws ServletException { Either override init() instead of init(ServletConfig), or call super.init(cf) as your first line. As the others suggested, a ServletContextListener is not a bad place to put this time of code either. Yoav

RE: Servlet won't run init()

2004-02-19 Thread Shapira, Yoav
Howdy, I tried overriding init() and super.init(SerlvetConfig cf) as 1st line of init(ServletConfig cf) but neither worked. Strange. Any errors in your logs? I was thinnking that I should use the init() method appraoch becasue it is a connectionpool and I want to initially build the pool

RE: Servlet won't run init()

2004-02-19 Thread Larry Isaacs
-Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, February 19, 2004 12:47 PM To: Tomcat Users List Subject: RE: Servlet won't run init() Howdy, I tried overriding init() and super.init(SerlvetConfig cf) as 1st line of init(ServletConfig

Re: Servlet won't run init()

2004-02-19 Thread Parsons Technical Services
Just a thought. Doug - Original Message - From: Larry Isaacs [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 19, 2004 1:06 PM Subject: RE: Servlet won't run init() -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent

Re: Servlet won't run init()

2004-02-19 Thread Phil Campaigne
-doc/jndi-resources-howto.html Just a thought. Doug - Original Message - From: Larry Isaacs [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 19, 2004 1:06 PM Subject: RE: Servlet won't run init() -Original Message- From: Shapira, Yoav [mailto

Re: Servlet won't run init()

2004-02-19 Thread Phil Campaigne
Shapira, Yoav wrote: Howdy, I tried overriding init() and super.init(SerlvetConfig cf) as 1st line of init(ServletConfig cf) but neither worked. Strange. Any errors in your logs? I was thinnking that I should use the init() method appraoch becasue it is a connectionpool and I want to

RE: Servlet won't run init()

2004-02-19 Thread Shapira, Yoav
Howdy, Now my IDEA IDE tech is telling me he thinks the problem is that the init() method is running before the IDEA debugger getes a chance to connect to tomcat. I don't see my println(..) messages in catalina.out. 1. Is there another log? 2. Would I likely run into similar problems using the

Re: Servlet won't run init()

2004-02-19 Thread Phil Campaigne
Shapira, Yoav wrote: Howdy, Now my IDEA IDE tech is telling me he thinks the problem is that the init() method is running before the IDEA debugger getes a chance to connect to tomcat. I don't see my println(..) messages in catalina.out. 1. Is there another log? 2. Would I likely run into similar

Re: Servlet won't run init()

2004-02-19 Thread Tony Nakamura
Subject: RE: Servlet won't run init() Howdy, Now my IDEA IDE tech is telling me he thinks the problem is that the init() method is running before the IDEA debugger getes a chance to connect to tomcat. I don't see my println(..) messages in catalina.out. 1. Is the

Re: Servlet won't run init()

2004-02-19 Thread Parsons Technical Services
, 2004 2:39 PM Subject: Re: Servlet won't run init() Shapira, Yoav wrote: Howdy, Now my IDEA IDE tech is telling me he thinks the problem is that the init() method is running before the IDEA debugger getes a chance to connect to tomcat. I don't see my println(..) messages in catalina.out

Re: Servlet won't run init()

2004-02-19 Thread Phil Campaigne
] Sent: Thursday, February 19, 2004 2:39 PM Subject: Re: Servlet won't run init() Shapira, Yoav wrote: Howdy, Now my IDEA IDE tech is telling me he thinks the problem is that the init() method is running before the IDEA debugger getes a chance to connect to tomcat. I don't see my println

Servlet won't run init()

2004-02-18 Thread Phil Campaigne
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-namePgConnectionPoolServlet/servlet-name display-namePgConnectionPoolServlet/display-name

Re: Servlet won't run init()

2004-02-18 Thread QM
: 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: : [snip] Please, humour me: put load-on-startup after init-param. I believe that's the order per the servlet spec. Humour me, part 2: verify the method

Re: Servlet won't run init()

2004-02-18 Thread Liem Do
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