Re: Sevlet at startup, not starting

2002-12-13 Thread Alexander Wallace
Thanks for all the help.

On Thursday 12 December 2002 19:15, Jacob Kjome wrote:
 That's what init() is there for.  Just note that the container is allowed
 to unload and reload servlets at any time it wants to so your init() and
 destroy() methods aren't guaranteed to run just once.  If you have
 application initialization that you want to happen once and only once
 during the entire run of the application, look into putting that code in
 the contextInitialized() method of a servlet context listener.

 Jake

 At 05:40 PM 12/12/2002 -0600, you wrote:
 Well, that must be it then!
 
 I should just move all my code that i want inited to the init then righ?
  Is that safe to do?
 
 Thanks!
 
 On Thursday 12 December 2002 16:19, Jacob Kjome wrote:
   Hello Alexander,
  
   Note that loading on startup only calls the init() method.  It does not
   call doGet() or anything like that.  Just making sure you understood
   that.
  
   Jake
  
   Thursday, December 12, 2002, 4:09:41 PM, you wrote:
  
   AW Hi there... I have 1 servlet to start at startup, but it doesnt. If
   i call the AW servlet from a browser, it starts fine.
  
   AW My web.xml has:
  
   AW   servlet
   AW servlet-nameStartup/servlet-name
   AW descriptionServlet that starts different startup classes and
   AW stuff./description
   AW servlet-classcom.difh.servlets.Startup/servlet-class
   AW load-on-startup1/load-on-startup
   AW   /servlet
  
   AW and
  
   AW   servlet-mapping
   AW servlet-nameStartup/servlet-name
   AW url-pattern/srv/com.difh.servlets.Startup/url-pattern
   AW   /servlet-mapping
  
   AW Any clues as to why this doesn't get run when tomcat starts?
  
   AW Thanks!
  
  
   AW --
   AW To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED] AW For additional
   commands, e-mail: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:  
  mailto:[EMAIL PROTECTED] For additional
  commands, e-mail: mailto:[EMAIL PROTECTED]


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




Sevlet at startup, not starting

2002-12-12 Thread Alexander Wallace
Hi there... I have 1 servlet to start at startup, but it doesnt. If i call the 
servlet from a browser, it starts fine.

My web.xml has:

  servlet
servlet-nameStartup/servlet-name
descriptionServlet that starts different startup classes and 
stuff./description
servlet-classcom.difh.servlets.Startup/servlet-class
load-on-startup1/load-on-startup
  /servlet

and

  servlet-mapping
servlet-nameStartup/servlet-name
url-pattern/srv/com.difh.servlets.Startup/url-pattern
  /servlet-mapping

Any clues as to why this doesn't get run when tomcat starts?

Thanks!


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




Re: Sevlet at startup, not starting

2002-12-12 Thread Jacob Kjome
Hello Alexander,

Note that loading on startup only calls the init() method.  It does not call doGet()
or anything like that.  Just making sure you understood that.

Jake

Thursday, December 12, 2002, 4:09:41 PM, you wrote:

AW Hi there... I have 1 servlet to start at startup, but it doesnt. If i call the 
AW servlet from a browser, it starts fine.

AW My web.xml has:

AW   servlet
AW servlet-nameStartup/servlet-name
AW descriptionServlet that starts different startup classes and 
AW stuff./description
AW servlet-classcom.difh.servlets.Startup/servlet-class
AW load-on-startup1/load-on-startup
AW   /servlet

AW and

AW   servlet-mapping
AW servlet-nameStartup/servlet-name
AW url-pattern/srv/com.difh.servlets.Startup/url-pattern
AW   /servlet-mapping

AW Any clues as to why this doesn't get run when tomcat starts?

AW Thanks!


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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




Re: Sevlet at startup, not starting

2002-12-12 Thread Alexander Wallace
Well, that must be it then! 
 
I should just move all my code that i want inited to the init then righ? Is 
that safe to do?

Thanks!

On Thursday 12 December 2002 16:19, Jacob Kjome wrote:
 Hello Alexander,

 Note that loading on startup only calls the init() method.  It does not
 call doGet() or anything like that.  Just making sure you understood that.

 Jake

 Thursday, December 12, 2002, 4:09:41 PM, you wrote:

 AW Hi there... I have 1 servlet to start at startup, but it doesnt. If i
 call the AW servlet from a browser, it starts fine.

 AW My web.xml has:

 AW   servlet
 AW servlet-nameStartup/servlet-name
 AW descriptionServlet that starts different startup classes and
 AW stuff./description
 AW servlet-classcom.difh.servlets.Startup/servlet-class
 AW load-on-startup1/load-on-startup
 AW   /servlet

 AW and

 AW   servlet-mapping
 AW servlet-nameStartup/servlet-name
 AW url-pattern/srv/com.difh.servlets.Startup/url-pattern
 AW   /servlet-mapping

 AW Any clues as to why this doesn't get run when tomcat starts?

 AW Thanks!


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


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




Re: Sevlet at startup, not starting

2002-12-12 Thread Jacob Kjome

That's what init() is there for.  Just note that the container is allowed 
to unload and reload servlets at any time it wants to so your init() and 
destroy() methods aren't guaranteed to run just once.  If you have 
application initialization that you want to happen once and only once 
during the entire run of the application, look into putting that code in 
the contextInitialized() method of a servlet context listener.

Jake

At 05:40 PM 12/12/2002 -0600, you wrote:
Well, that must be it then!

I should just move all my code that i want inited to the init then righ? Is
that safe to do?

Thanks!

On Thursday 12 December 2002 16:19, Jacob Kjome wrote:
 Hello Alexander,

 Note that loading on startup only calls the init() method.  It does not
 call doGet() or anything like that.  Just making sure you understood that.

 Jake

 Thursday, December 12, 2002, 4:09:41 PM, you wrote:

 AW Hi there... I have 1 servlet to start at startup, but it doesnt. If i
 call the AW servlet from a browser, it starts fine.

 AW My web.xml has:

 AW   servlet
 AW servlet-nameStartup/servlet-name
 AW descriptionServlet that starts different startup classes and
 AW stuff./description
 AW servlet-classcom.difh.servlets.Startup/servlet-class
 AW load-on-startup1/load-on-startup
 AW   /servlet

 AW and

 AW   servlet-mapping
 AW servlet-nameStartup/servlet-name
 AW url-pattern/srv/com.difh.servlets.Startup/url-pattern
 AW   /servlet-mapping

 AW Any clues as to why this doesn't get run when tomcat starts?

 AW Thanks!


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


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