tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject <load-on-startup> and Tomcat v4.0
Date Fri, 21 Sep 2001 16:13:05 GMT
Hi all,

I have just been trying to get a servlet application transferred from
Tomcat v3.2 to v4.0. It's worked fine before with v3.2, but on starting
v4.0, I get an error like so:

org.xml.sax.SAXParseException: Element "servlet" does not allow
"load-on-startup" here.

Unfortunately the error message does state where "here" is, however I do
have it defined like so:

  <servlet>
    <servlet-name>WWWW</servlet-name>
    <servlet-class>XXX</servlet-class>
    <init-param>
      <param-name>YYY</param-name>
      <param-value>ZZZ</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>

And a second similar container with
<load-on-startup>2</load-on-startup>.

I have been trawling the docs to find out how the "load-on-startup" is
supposed to work, but can find no details (I set up servers, but I don't
program java :( )...

Can anyone shed some light?

Regards,
Graham 
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."
Mime
View raw message