Hi,
I think there is a problem with the getInitParameter in 3.2.1.
When a servlet is defined with <load-on-startup>1</load-on-startup> in
WEB-INF/web.xml the init()-method gets called twice.
First time, as expected, when the servlet-engine fires-up.
Everthing is swell with the getInitParameter-calls, that is, the init-params are
valid.
The "second time" init() is called is when the servlet is getting a request for
the first time, but this time the getInitParameter just return nulls so init()
exits with an exception.
I say "second time" because tomcat is trying to create a new instance of the
servlet.
And when I shut-down tomcat I can see the destroy-method gets called for the
rightly created instance.
When I remove the <load-on-startup>-parameter from web.xml the getInitParameter
also returns null in the init-method.
This happens both in VAJ 3.02 on linux(jdk 1.1.7) and IBM JDK 1.3, also on
linux.
ROOT-context or not doesn't seem to matter.
I searched the mailing-lists, but couldn't determine if this was fixed or of any
workarounds that worked.
Any comments on this?
Regards
Stein M. Eliassen
System Developer - KPNQwest Norway AS
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]