Perhaps the problem is that your servlet *is*
being started, but is throwing an exception
during constructor or init method..print
statements in your constructor and init method
should prove this one way or another.

The load-on-startup value is just an integer that
indicates order of startup (low numbers first). The
value you've used is just a very very low integer :-)

Actually, you might want to use "0" or "1" as your
load-on-startup value, to ensure that the DefaultServlet
(which uses this -ve value itself to try to get started before
everything else) does actually get started before your
servlet code.

> -----Original Message-----
> From: Michael Wentzel [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, January 04, 2001 7:15 PM
> To:   '[EMAIL PROTECTED]'
> Subject:      Q:load on startup 
> 
> When trying to configure a servlet to load
> at server startup using:
> 
>     <servlet>
>       <servlet-name>
>               PDFStyle
>       </servlet-name>
>       <servlet-class>
>               reporting.PDFStyleServlet
>       </servlet-class>
>       <load-on-startup>
>             -2147483645
>       </load-on-startup>
>     </servlet>
> 
> I get the following:
> 
> cannot load servlet name: PDFStyle
> 
> The class file is in the Web-inf/classes/reporting path
> as it should be but it's still not loading.
> 
> Any ideas on what's wrong?  Is this the correct form for
> the load-on-startup tag in web.xml?  What does the integer
> represent(classid...)?
> 
> 
> ---
> Michael Wentzel
> Software Developer
> Software As We Think
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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

Reply via email to