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
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
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
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
-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
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
-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
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
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
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
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
, 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
]
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
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
: 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
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
16 matches
Mail list logo