tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitri Colebatch <...@bigpond.net.au>
Subject RE: <load-on-startup>
Date Fri, 20 Jul 2001 01:04:10 GMT
I would put some debugging output in the init method and check  what
happens - how far it gets... dont forget the super.init(config) at the
start (o:  I've made that mistake when writing servlets that dont actually
function as servlets.

cheers
dim

On Thu, 19 Jul 2001, Java Junkie wrote:

> Thank you for your response. I am now getting this
> error when it tries to start:
> 
> cannot load servlet name: XXXXXX
> 
> Any suggestions?
> 
> Thnx!
> 
> 
> --- Saritha Pula <spula@SonicWALL.com> wrote:
> > hi 
> >   Load on start up is basically to load the class
> > files once u start the
> > tomcat ..
> > <load-on-startup>1</load-on-startup> 1 is order in
> > which class files to
> > be loaded 
> > --saritha
> > 
> > 
> > -----Original Message-----
> > From: Java Junkie [mailto:dluxjava@yahoo.com]
> > Sent: Thursday, July 19, 2001 5:02 PM
> > To: tomcat-user@jakarta.apache.org
> > Subject: RE: <load-on-startup>
> > 
> > 
> > I couldn't quite follow how the document said to
> > implement this. Could you help me with this code
> > snippet?
> > 
> > Thnx!
> > 
> > <servlet>    
> > 	<servlet-name>
> > 	GeneConnectionPool
> > 	</servlet-name>
> > 	<servlet-class>
> > 	gene.connection.GeneConnectionPool
> > 	</servlet-class>
> > 	<init-param>
> > 	<param-name>connections</param-name>
> > 	<param-value>2</param-value>
> > 	</init-param>
> > 	<load-on-startup>
> > 	1
> > 	</load-on-startup>
> > </servlet>
> > --- William Kaufman <WKaufman@viquity.com> wrote:
> > > I'm not sure I understand what you're trying to
> > > accomplish, but the JSDK
> > > explains how to use <load-on-startup>.  Look at
> > the
> > > JSDK spec, at,
> > > 
> > >  
> > http://java.sun.com/products/servlet/download.html
> > > 
> > > or web.dtd, at,
> > > 
> > >   http://java.sun.com/j2ee/dtds/web-app_2_2.dtd
> > > 
> > > 
> > >                                         -- Bill K.
> > 
> > > 
> > > > -----Original Message-----
> > > > From: Java Junkie [mailto:dluxjava@yahoo.com]
> > > > Sent: Thursday, July 19, 2001 3:23 PM
> > > > To: tomcat-user@jakarta.apache.org
> > > > Subject: <load-on-startup>
> > > > 
> > > > 
> > > > Hello,
> > > > I am trying to create a pooled resource. I am
> > > doing
> > > > this by loading a wrapper class on startup that
> > > will
> > > > recieve two parameters and manage the resources
> > > based
> > > > on those parameters. I do not know the exact
> > > syntax
> > > > for using the <load-on-startup> tag. Could
> > someone
> > > > please help?!
> > > > 
> > > > Thank you.
> > > > 
> > > >
> > __________________________________________________
> > > > Do You Yahoo!?
> > > > Get personalized email addresses from Yahoo!
> > Mail
> > > > http://personal.mail.yahoo.com/
> > > > 
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
> 


Mime
View raw message