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
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
-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
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
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.?
...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
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
(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
]]
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
-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
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
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
: 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
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
]'
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
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
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
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
, 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
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
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
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
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
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
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
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
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
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
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.
29 matches
Mail list logo