Michael Wentzel wrote:
> 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.
>
Is your class file is actually at
WEB-INF/classes/reporting/PDFStyleServlet.class
and is it compiled into package "reporting"?
Are there any other log messages besides "cannot load servlet" that might be
helpful in figuring this out (like a stack trace)?
>
> 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...)?
>
It represents the order in which servlets are loaded, if there is more than
one. See the servlet spec <http://java.sun.com/products/servlet/download.html>
for details.
>
> ---
> Michael Wentzel
Craig McClanahan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]