Two instance servlet during startup

2001-11-24 Thread Valera Molyakov
Hi ! I am load servlet on startup. servlet servlet-nameMailingListServlet/servlet-name servlet-classservlets.MailingListServlet/servlet-class init-param param-nameperiod/param-name param-value20/param-value /init-param load-on-startup

Servlet on startup

2001-11-19 Thread Conrad Winchester
Hi all, The following XML snippet has been used to initialize our application for about the past 8 months. servlet servlet-nameInit/servlet-name servlet-classcom.hotgen.website.init.Init/servlet-class load-on-startup1/load-on-startup /servlet It has worked faultlessly

Re: servlet in startup

2001-10-22 Thread Dr. Evil
-classstartlogging/servlet-class load-on-startup1/load-on-startup /servlet The number in the load-on-startup tag specifies the order of loadup. In your servlet, put the code that you want to run on startup in the init() method. It will be called in the order listed in the web.xml on server startup

servlet in startup

2001-10-21 Thread Jovie Castaneda
Hi guys, Can someone please help me how to make my servlet run when the Tomcat starts up. What do I have to do in my codes to impelement this or some setup needed for my Tomcat config.? Thanks in advance

Re: servlet in startup

2001-10-21 Thread Dmitri Colebatch
Look at the load on startup flag in web.xml hth dim On Mon, 22 Oct 2001, Jovie Castaneda wrote: Hi guys, Can someone please help me how to make my servlet run when the Tomcat starts up. What do I have to do in my codes to impelement this or some setup needed for my Tomcat config.?

RE: servlet in startup

2001-10-21 Thread Jovie Castaneda
...then I tried to start Tomcat and it says that it cannot load Demolog How do I get around with this? Thanks in advance. -Original Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 10:07 AM To: [EMAIL PROTECTED] Subject: Re: servlet in startup

RE: servlet in startup

2001-10-21 Thread pero
Are you sure, that 'Demolog' is the fully qualified name of your Servlet? I mean, don't you have a package name? (property servlet-class) To load a Servlet at startup you need to provide some positive number as the load-on-startup property. If you want to call your Servlet from an URL like http

RE: servlet in startup

2001-10-21 Thread Dmitri Colebatch
(o: ). hth dim Thanks in advance. -Original Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 10:07 AM To: [EMAIL PROTECTED] Subject: Re: servlet in startup Look at the load on startup flag in web.xml hth dim On Mon, 22 Oct 2001

RE: servlet in startup

2001-10-21 Thread Jovie Castaneda
]] Sent: Monday, October 22, 2001 10:32 AM To: [EMAIL PROTECTED] Subject: RE: servlet in startup Are you sure, that 'Demolog' is the fully qualified name of your Servlet? I mean, don't you have a package name? (property servlet-class) To load a Servlet at startup you need to provide some positive

RE: servlet in startup

2001-10-21 Thread Jovie Castaneda
-Original Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 10:07 AM To: [EMAIL PROTECTED] Subject: Re: servlet in startup Look at the load on startup flag in web.xml hth dim On Mon, 22 Oct 2001, Jovie Castaneda wrote: Hi guys

RE: servlet in startup

2001-10-21 Thread Dmitri Colebatch
On Mon, 22 Oct 2001, Jovie Castaneda wrote: Can someone please help me how to make my servlet run when the Tomcat starts up. What do I have to do in my codes to impelement this or some setup needed for my Tomcat config.? Thanks in advance Hi thanks for the reply but Im really

RE: servlet in startup

2001-10-21 Thread Jovie Castaneda
Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 11:05 AM To: [EMAIL PROTECTED] Subject: RE: servlet in startup On Mon, 22 Oct 2001, Jovie Castaneda wrote: Can someone please help me how to make my servlet run when the Tomcat starts up. What do I

RE: servlet in startup

2001-10-21 Thread Dmitri Colebatch
: servlet in startup On Mon, 22 Oct 2001, Jovie Castaneda wrote: Can someone please help me how to make my servlet run when the Tomcat starts up. What do I have to do in my codes to impelement this or some setup needed for my Tomcat config.? Thanks in advance Hi

RE: servlet in startup

2001-10-21 Thread Jovie Castaneda
the StartMe..im confused now..please help!! -Original Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 11:54 AM To: [EMAIL PROTECTED] Subject: RE: servlet in startup Put a try/catch around the init method, and print the stack trace. by the looks

RE: Double loading when loading servlet on startup

2001-08-10 Thread Alexander Cherinko
]' Subject: RE: Double loading when loading servlet on startup I tried this scenario with Tomcat 3.2.1 and I only get one call to init(). Are you on Windows? If your ts directory is actually named Ts, I think you would get two context's. What does your tomcat log show about contexts being

Double loading when loading servlet on startup

2001-08-08 Thread Alexander Cherinko
Hi problem is that when I mark servlets as load-on-startup they are loaded twice in jvm. I want this servlet to serve as initializer i.e. to initialize some other classes in its init method. The worst is that that classes are double loaded too. I.e. I want to init class which is Thread subclass

Re: Double loading when loading servlet on startup

2001-08-08 Thread Mike McGuinness
What version of tomcat? Alexander Cherinko wrote: Hi problem is that when I mark servlets as load-on-startup they are loaded twice in jvm. I want this servlet to serve as initializer i.e. to initialize some other classes in its init method. The worst is that that classes are double loaded

RE: Double loading when loading servlet on startup

2001-08-08 Thread Loc Lefvre
Got the same problem :(( (on v3.2.3 - NT) -Message d'origine- De : Alexander Cherinko [mailto:[EMAIL PROTECTED]] Envoye : mercredi 8 aout 2001 16:38 A : [EMAIL PROTECTED] Objet : Double loading when loading servlet on startup Hi problem is that when I mark servlets as load

RE: Double loading when loading servlet on startup

2001-08-08 Thread Larry Isaacs
, August 08, 2001 12:32 PM To: [EMAIL PROTECTED] Subject: RE: Double loading when loading servlet on startup Got the same problem :(( (on v3.2.3 - NT) -Message d'origine- De : Alexander Cherinko [mailto:[EMAIL PROTECTED]] Envoye : mercredi 8 aout 2001 16:38 A : [EMAIL PROTECTED

RE: Double loading when loading servlet on startup

2001-08-08 Thread Alexander Cherinko
: Re: Double loading when loading servlet on startup What version of tomcat? Alexander Cherinko wrote: Hi problem is that when I mark servlets as load-on-startup they are loaded twice in jvm. I want this servlet to serve as initializer i.e. to initialize some other classes in its

RE: Double loading when loading servlet on startup

2001-08-08 Thread Alexander Cherinko
for this context servlet servlet-nameLoader/servlet-name servlet-classLoader/servlet-class load-on-startup1/load-on-startup /servlet jdb shows double classes named Loader loaded with different instances of org.apache.tomcat.loader.AdaptiveClassLoader12 which have generation

RE: Double loading when loading servlet on startup

2001-08-08 Thread Larry Isaacs
Cherinko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 1:51 PM To: [EMAIL PROTECTED] Subject: RE: Double loading when loading servlet on startup The case: Nt/Linux v3.2.1,2,3. There is one context: Context path=/ts docBase=webapps/ts

Tomcat-servlet at startup

2001-07-10 Thread Lakshminarayanan Ramakrishnan
Title: Tomcat-servlet at startup Hi Tomcat loads the servlet class at startup, as far as my knowledge goes it functions properly, but when i look into tomcat.log, it is something like this, pls look at the the highlighted text, it says null, what does it mean?, and moreover, two contexts

RE: Unable to load servlet on startup ??

2001-02-06 Thread Michael Wentzel
Also, if you want to debug the startup of your servlet you can do whatever you want(i.e. debug output) in your servlets init() method. This is the method that gets called when a servlet is instantiated. Utilize it like you would a constructor. --- Michael Wentzel Software Developer Software

Unable to load servlet on startup ??

2001-02-05 Thread Srinivas Kurella
Title: Unable to load servlet on startup ?? Hi, I am trying to use Tomcat in a standalone mode. I have a working application under jrun and am trying to move it to Tomcat. I am trying to use my existing directory structure and hence am not using the /webapps/ path. I have a servlet which

RE: Unable to load servlet on startup ??

2001-02-05 Thread Stefan Langer
If you are using tomcat 3.2.1 or higher you have to move the web.xml file to the WEB-INF directory of your webapp since tomcat 3.2/.1 ignores the web.xml in the conf directory. Stefan

RE: Unable to load servlet on startup ??

2001-02-05 Thread Srinivas Kurella
thanks for the reply. So how do i use the WEB-ING directory without putting my app under webapps ?? Srini -Original Message-From: Stefan Langer [mailto:[EMAIL PROTECTED]]Sent: Monday, February 05, 2001 4:02 PMTo: [EMAIL PROTECTED]Subject: RE: Unable to load servlet

RE: Unable to load servlet on startup ??

2001-02-05 Thread Stefan Langer
Sorry for the confusion but with webapp I actually ment your webapplication. The WEB-INF directory goes in the root folder of your webapplication. Example: Suppose you have a webapplication called foo and you have added a context for it to server.xml similar to this Context

loading servlet on startup

2000-12-04 Thread Chris Huisman
Hello, How do I go about loading a sevlet on startup? I know this is probably on the FAQ page, but unfortunately I am unable to get onto the faq page at the moment. ANy help would be great. thanks, Chris.