tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Grigg <ken.gr...@amikanow.com>
Subject RE: load-on-startup in 3.0?
Date Tue, 28 Mar 2000 22:09:39 GMT
I'm not sure I understand... I thought I had that already as the
fourth line below...

>   <servlet>
>     <servlet-name>WebInit</servlet-name>
>     <servlet-class>com.myco.kanoa.webapp.service.WebInit</servlet-class>
>     <load-on-startup>5</load-on-startup>
>   </servlet>

I reviewed the Servlet 2.2 spec and I believe I'm following it OK.
I figured maybe my servlet init had a problem... but if I place a VAJava
breakpoint it never gets hit, and the only console output I get is:

> WebInit: init
> cannot load servlet name: WebInit

Is there somewhere else the problem may be logged to?

Thanks...	Ken.

-----Original Message-----
From: Brian Nivens [mailto:bnivens@visionarysystemsinc.com]
Sent: Tuesday, March 28, 2000 3:52 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: load-on-startup in 3.0?


Add the tag <load-on-startup>(integer)</load-on-startup> under the <servlet>
tag for that servlet. It's working for me with the same set up.

Check the servlet 2.2 spec at javasoft for more info.

Ken Grigg wrote:

> Hi,
>
> I'm having a problem getting a servlet (WebInit) to load on startup. I'm
> still running Tomcat 3.0 on NT... maybe it's time to upgrade to 3.1? My
> environment is running under VAJava. Any help would be appreciated!!  My
> classes are exported to the web-inf/classes directory -- what am I
missing?
>
> Thanks...       Ken.
>
> The web.xml file is:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <!DOCTYPE web-app
>     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>     "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
>
> <web-app>
>   <display-name>MyService.com Service</display-name>
>   <context-param>
>      <param-name>Webmaster</param-name>
>      <param-value>webmaster@myco.com</param-value>
>   </context-param>
>   <welcome-file-list>
>     <welcome-file>default.htm</welcome-file>
>   </welcome-file-list>
>   <servlet>
>     <servlet-name>WebInit</servlet-name>
>     <servlet-class>com.myco.kanoa.webapp.service.WebInit</servlet-class>
>     <load-on-startup>5</load-on-startup>
>   </servlet>
> </web-app>
>
> The output I get is:
>
> Configuring web service using "default"
> Configuring web service using
> "file:/C:\IBMVJava\ide\project_resources\Tomcat Version
> 3\afwebapp/WEB-INF/web.xml"
> default: init
> jsp: init
> WebInit: init
> cannot load servlet name: WebInit
> Starting tcp endpoint on 8080 with
> org.apache.tomcat.service.http.HttpConnectionHandler
> Starting tcp endpoint on 8007 with
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler

Mime
View raw message