Re: load on startup

2005-08-06 Thread David Johnson
instance needs to be final, or it may be changed by some tricks that break encapsulation. On Sat, 2005-08-06 at 15:59 -0400, Mauricio Nuñez wrote: > Improved version without sync locking: > > class SingletonObj > { > > private static SingletonObj instance; > > static > { >

Re: load on startup

2005-08-06 Thread Mauricio Nuñez
Improved version without sync locking: class SingletonObj { private static SingletonObj instance; static { instance=new SingletonObj(); } private SingletonObj() { } public static SingletonObj getInstance() // wit

Re: load on startup

2005-08-06 Thread David Johnson
{ private static final SingletonObj singleton; // optional - use if you want the initialization to occur as class load time // Otherwise, the initialization will occur at first call to getSingleton(); // static initialization at load time static { getSingelton ()/ } private SingletonObj ()

Re: load on startup

2005-08-06 Thread David Johnson
private static final SingletonObj singleton; public SingletonObj () { super (); singleton = this; } public synchronized SingletonObj getSingleton () { if ( singleton == null ) { new SingletonObj(); } return singleton; } On Fri, 2005-08-05 at 20:11 -0700, Ming Han wrote: > You can

Re: load on startup

2005-08-05 Thread Ming Han
You can use Singleton pattern, but care must be taken. For example if ( singleton == null ) { singleton = new SingletonObj(); } There might be a case where few thread running concurrently on the null checking, then multiple singleton object will be created more than one. __

Re: load on startup

2005-08-05 Thread Behrang Saeedzadeh
> You set up your object in the contextInitialized(...) method of your > implementation and tear it down in contextDestroyed(...). For it to be > used you need to add it to your web.xml. > > The container is free to init and destroy servlets as it sees fit after > complying with loa

Re: load on startup

2005-08-05 Thread Jon Wingfield
free to init and destroy servlets as it sees fit after complying with load-on-startup directives. That's why use of load-on-startup for initialization of application scope objects is prone to error and unforeseen circumstances. my $0.02 and HTH, Jon Nicolas Schwartz wrote: Hi all, I ne

RE: load on startup

2005-08-05 Thread Marius Hanganu
init method of the servlet instead of the service/doPost/doGet methods. Regards, Marius -Original Message- From: Nicolas Schwartz [mailto:[EMAIL PROTECTED] Sent: Friday, August 05, 2005 10:23 AM To: tomcat-user@jakarta.apache.org Subject: load on startup Hi all, I need an object to be

load on startup

2005-08-05 Thread Nicolas Schwartz
Hi all, I need an object to be instanciated on the startup of my tomcat. So I did a servlet the creates an instance of it and put my servlet in the web.xml of a webapp with the loadOnStartup parameter. The constructor of my object is called twice so there must be 2 instances of it ... which is

load-on-startup, but in Struts?

2005-05-31 Thread Nikola Milutinovic
Hi all. Maybe this isn't a good list for this, but here goes. I know how to define for a Java Web Application, no problem there. My question is how do I do it for a Struts application? The trick is, I'd like to load some application parameters from the DB into the application scope. And the

Re: question about load-on-startup in web.xml

2005-05-12 Thread QM
On Wed, May 11, 2005 at 08:53:43PM -0500, Caldarale, Charles R wrote: : > any one know if there's a way to make webappY get installed before : > webappX? : : If you want to synchronize application deployment, I think you're going : to have to do that within the app itself, possibly with context :

RE: question about load-on-startup in web.xml

2005-05-12 Thread Michael Oliver
1, 2005 3:47 PM To: Parsons Technical Services; Tomcat Users List Subject: Re: question about load-on-startup in web.xml i tried putting in a sleep in my servlet's init method, but $CATALINA_HOME/logs/catalina.out seems to indicate that tomcat waits for it to initalize.. in my catalina.out, i have:

Re: question about load-on-startup in web.xml

2005-05-11 Thread Annie Wang
thanks for the insights and suggestions chuck! On 5/11/05, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: Annie Wang [mailto:[EMAIL PROTECTED] > > Subject: Re: question about load-on-startup in web.xml > > > > any one know if there's a way t

RE: question about load-on-startup in web.xml

2005-05-11 Thread Caldarale, Charles R
> From: Annie Wang [mailto:[EMAIL PROTECTED] > Subject: Re: question about load-on-startup in web.xml > > any one know if there's a way to make webappY get installed before > webappX? As far as I can tell, the intent of the JSP and servlet specs is for web applications to be

Re: question about load-on-startup in web.xml

2005-05-11 Thread Annie Wang
any one know if there's a way to make webappY get installed before webappX? what determines the install order? i thought it was load-on-startup in the web.xml file, but maybe that affects the ordering of servlet initalization within a web application (if the web application has multiple serv

Re: question about load-on-startup in web.xml

2005-05-10 Thread Annie Wang
pefully someone will set me straight if I am off base here. > > Doug > > - Original Message - > From: "Annie Wang" <[EMAIL PROTECTED]> > To: > Sent: Tuesday, May 10, 2005 6:59 PM > Subject: question about load-on-startup in web.xml > > hi, > > regarding

Re: question about load-on-startup in web.xml

2005-05-10 Thread Parsons Technical Services
omeone will set me straight if I am off base here. Doug - Original Message - From: "Annie Wang" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 10, 2005 6:59 PM Subject: question about load-on-startup in web.xml hi, regarding the tag in web.xml: say i have 2 web apps (webapp

question about load-on-startup in web.xml

2005-05-10 Thread Annie Wang
rvlet? basically, i want both web app's servlets to auto initialize on tomcat startup, but i want webapp2's servlet to initialze only after webapp1's servlet has finished initialization. when i use the above load-on-startup settings, webapp2's servlet seems to initialize be

load-on-startup causes application to be deployed twice in tomcat 5.5.9

2005-05-05 Thread Guy Katz
hi; i have send a couple of emails regarding this but now i am more focused on the problem. my application was deployed twice instead of once on tomcat startup. i saw that the trouble seem to come from the load-on-startup tag in the web.xml (when its absent the problem is gone) is this a known

Re: load-on-startup servlet needs access

2005-03-06 Thread Shankar Unni
Darren Govoni wrote: How can I have my servlet loaded on startup, but after the web server is up and running? Not possible? Well, you can always start a thread that does this initialization, and return. Then, when the full Tomcat initialization is complete, your thread will run to completion (ass

Re: load-on-startup servlet needs access

2005-03-06 Thread Darren Govoni
; this, so pardons if its old problem. I have a servlet that I designate > > to load-on-startup, but that servlet calls a class that needs to access > > the tomcat server to get resources. It just hangs because the server is > > not ready to serve yet. How can I have my servlet

Re: load-on-startup servlet needs access

2005-03-06 Thread Tim Funk
f its old problem. I have a servlet that I designate to load-on-startup, but that servlet calls a class that needs to access the tomcat server to get resources. It just hangs because the server is not ready to serve yet. How can I have my servlet loaded on startup, but after the web server is u

load-on-startup servlet needs access

2005-03-06 Thread Darren Govoni
Hi, I wasn't able to do a full text search of archive message bodies on this, so pardons if its old problem. I have a servlet that I designate to load-on-startup, but that servlet calls a class that needs to access the tomcat server to get resources. It just hangs because the server is not

Re: Load-on-Startup child-threads not dying at context-reload

2004-10-19 Thread Jonathan Wilson
Great ideas Yoav. Thank you for your comments/input. --JW Shapira, Yoav wrote: Hi, Hmm, then is there a recommended way for managing child threads that are kicked off by a servlet? My servlet reads an XML file to determine what classes to create and run - but if the Servlet itself goes a

RE: Load-on-Startup child-threads not dying at context-reload

2004-10-19 Thread Shapira, Yoav
Hi, >Hmm, then is there a recommended way for managing child threads that are >kicked off by a servlet? My servlet reads an XML file to determine what >classes to create and run - but if the Servlet itself goes away and then >is re-init()ed it will attempt to start those classes again. Does every

Re: Load-on-Startup child-threads not dying at context-reload

2004-10-18 Thread Jonathan Wilson
different JVM, and ppid on your system is not a reliable method, as has been discussed on this list numerous times. Better design/good ideas?? A ServletContextListener is better, as someone else said, because a load-on-startup servlet may be restarted by the container as needed with or

RE: Load-on-Startup child-threads not dying at context-reload

2004-10-18 Thread Shapira, Yoav
ppid on your system is not a reliable method, as has been discussed on this list numerous times. >Better design/good ideas?? A ServletContextListener is better, as someone else said, because a load-on-startup servlet may be restarted by the container as needed with or without an application reload. B

Re: Load-on-Startup child-threads not dying at context-reload

2004-10-18 Thread Jonathan Wilson
I'm working on getting the next release out on TC5. I don't think that would fix my threading issue, however. JW Ben Souther wrote: If upgrading Tomcat is possible, a context listener would be a better design. On Mon, 2004-10-18 at 15:51, Jonathan Wilson wrote: I have a 1 Servlet on TC3.3.1(u

Re: Load-on-Startup child-threads not dying at context-reload

2004-10-18 Thread Ben Souther
If upgrading Tomcat is possible, a context listener would be a better design. On Mon, 2004-10-18 at 15:51, Jonathan Wilson wrote: > I have a 1 Servlet on TC3.3.1(under > RH7.3) which checks an XML file which contains a list of Runnable > classes to kick off at servlet startup. These child thr

Load-on-Startup child-threads not dying at context-reload

2004-10-18 Thread Jonathan Wilson
I have a 1 Servlet on TC3.3.1(under RH7.3) which checks an XML file which contains a list of Runnable classes to kick off at servlet startup. These child threads all belong to the same threadgroup(however, not the same threadgroup of the spawner servlet). These are daemon threads, and have the

Re: Shutdown process hanging when I load-on-startup

2004-09-16 Thread Hubert Rabago
ad non-daemon threads that it would cause issues when I shut down the container, because I had this issue with apps I inherited. The reason I thought I got it right all this time was because of my previous experience, in that if I didn't shut down the thread, I expected my tomcat console to stay. Like

RE: Shutdown process hanging when I load-on-startup

2004-09-16 Thread Shapira, Yoav
Hi, Please keep the discussion on the list, not person. It might benefit others now in the future, from the archives. >From what I can tell, my servlet#destroy() method is being called, >because I shut down the JMS connections and the ActiveMQ broker from >there. > >I'm just running Tomcat throu

RE: Shutdown process hanging when I load-on-startup

2004-09-16 Thread Shapira, Yoav
ct: Shutdown process hanging when I load-on-startup > >Hi, > >I have a servlet whose init() method sets up an ActiveMQ jms broker >and a couple of JMS connections. > >When I specify load-on-startup for this servlet, Tomcat hangs when I >shut it down. I reach the "I

Shutdown process hanging when I load-on-startup

2004-09-16 Thread Hubert Rabago
Hi, I have a servlet whose init() method sets up an ActiveMQ jms broker and a couple of JMS connections. When I specify load-on-startup for this servlet, Tomcat hangs when I shut it down. I reach the "INFO: Stopping Coyote HTTP/1.1 on http-8080" line, afterwards it hangs. When I

Re: Filters and load-on-startup

2004-03-16 Thread Christopher Schultz
Raphael, The webapp has a login filter that needs a connection from the connection pool. The webapp loads the login filter first. I don't really want to remove the filter because its integral to the application's design. Is there another solution, to getting the connection pool instantiated be

RE: Filters and load-on-startup

2004-03-16 Thread Shapira, Yoav
Hi, >Actually I asked the question. Problem is I don't want the filter to be >loaded first. I'm trying to implement a webapp-wide connection pool to >mysql as documented in "Java Servlet's Developper's guide". I have a class >'ConnectionServlet' that is creates and initializes the connection p

RE: Filters and load-on-startup

2004-03-16 Thread Blanchard, Raphael
the connection pool instantiated before the filter? Raphaël -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 10:49 AM To: Tomcat Users List Subject: RE: Filters and load-on-startup Hi, >Actually, it is. SRV9.12 mandates the followi

RE: Filters and load-on-startup

2004-03-16 Thread Shapira, Yoav
Hi, >Actually, it is. SRV9.12 mandates the following load order: listeners, >filters, servlets (Servlet Specification 2.4). So any filters should be >loaded before any servlets, regardless of load-on-startup value. Yup, clear as day, thanks. I figured you'd have looked at t

RE: Filters and load-on-startup

2004-03-16 Thread Ronald Wildenberg
> Hi, > > >Do filters get loaded before servlets regardless of load-on-startup > >value? > > I don't think so: as filters can be mapped to servlet-name, servlets > must be loaded first. (Although I suppose you could read web.xml, so > you have the servlet in

RE: Filters and load-on-startup

2004-03-16 Thread Shapira, Yoav
Hi, >Do filters get loaded before servlets regardless of load-on-startup value? I don't think so: as filters can be mapped to servlet-name, servlets must be loaded first. (Although I suppose you could read web.xml, so you have the servlet info, then instantiance filters, then ins

Filters and load-on-startup

2004-03-16 Thread Blanchard, Raphael
Do filters get loaded before servlets regardless of load-on-startup value? Raphael

RE: Repeated "load-on-startup" niggle

2004-01-26 Thread Chris Ward
> 302 -- found (redirect), this is expected and good. 304 -- > not modified, means it's in your browser's cache. Try > clearing your browser's cache. Top tip. Cleared the cache and the gifs etc. turned up! Thanks for that. I should take more notice of the codes. > >I'm not

RE: Repeated "load-on-startup" niggle

2004-01-26 Thread Chris Ward
Correct - the only place the Filter is mentioned is in the web.xml for the "/" Context and the .class file is in that Context. If it further confirms your understanding, I should mention that in the beginning I *did* have a copy of the Filter under "/hal" (for initial testing of the Filter) and

Re: Repeated "load-on-startup" niggle

2004-01-25 Thread Joe Francis
Chris, thanks for responding. I think I understand. Sanity check: the filter is not even mentioned anywhere in the webapps/hal heirarchy, right? That hierarchy is totally unaware of the filter. If that's the case then all is making sense now. thanks again, -joe Chris Ward wrote: Hi Joe,

RE: Repeated "load-on-startup" niggle

2004-01-25 Thread Chris Ward
Hi Joe, I'm not sure exactly what your query is but the setup I have is a "/" and a "/hal" Context. The Filter I am using to direct any requests to "/" to "/hal" lives in the WEB-INF/classes dir of the "/" context. In my case I used the Tomcat default dir of "../webapps/ROOT" for the "/" docBas

Re: Repeated "load-on-startup" niggle

2004-01-24 Thread Joe Francis
Shapira, Yoav wrote: Howdy, A javax.servlet.Filter is one nice clean way. Apologies if this is dumb q: Googling the jakarta site and reading the tomcat o'reilly have left me confused on this. Isn't the filter part of web app? From jakarta: Filters are configured in the deployment descriptor

RE: Repeated "load-on-startup" niggle

2004-01-23 Thread Shapira, Yoav
Howdy, The response code tell a ton. >Seems to request both versions... > > - - [23/Jan/2004:17:31:22 00] "GET /images/buttons/Delete.gif HTTP/1.1" >302 - > - - [23/Jan/2004:17:31:22 00] "GET /images/buttons/Clone.gif HTTP/1.1" >302 - > - - [23/Jan/2004:17:31:22 00] "GET /hal/images/buttons/Delet

RE: Repeated "load-on-startup" niggle

2004-01-23 Thread Chris Ward
> > Hmm, that's strange. Enable the AccessLogValve (in > server.xml) so that you can see what's actually being > requested from the server. > Seems to request both versions... - - [23/Jan/2004:17:31:22 00] "GET /images/buttons/Delete.gif HTTP/1.1" 302 - - - [23/Jan/2004:17:31:22 00] "GET

RE: Repeated "load-on-startup" niggle

2004-01-23 Thread Chris Ward
> > Hmm, that's strange. Enable the AccessLogValve (in > server.xml) so that you can see what's actually being > requested from the server. Seems to request both versions... > >try > >{ > >System.out.println( "REQ : getRequestURI : " + > request.getRequestURI() > >); >

RE: Repeated "load-on-startup" niggle

2004-01-23 Thread Shapira, Yoav
Howdy, >Below is the filter I've been using. It seems to mostly work, >but any image files from a path such as "/images/Delete.gif" >seem to not get updated to "/hal/images/Delete.gif" in the >HTML. > >However, the output I get to System.out *does* show the filter >processing these requests. An

RE: Repeated "load-on-startup" niggle

2004-01-23 Thread Chris Ward
> > I would use sendRedirect in this case for two reasons: > - To really make it look/act as if the request was for the /hal URL, > - To avoid getting a RequestDispatcher for a resource outside > your docBase > > sendRedirect would preserve all the request parameters, > including POST data. H

RE: Repeated "load-on-startup" niggle

2004-01-23 Thread Chris Ward
ot context to be NOT the same docbase as /hal) > > > -Original Message- > > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > > Sent: Friday, January 23, 2004 9:10 AM > > To: Tomcat Users List > > Subject: RE: Repeated "load-on-startup" niggle > >

RE: Repeated "load-on-startup" niggle

2004-01-23 Thread Chris Ward
> > Howdy, > But he wants to redirect all requests, not just those for /. > Exactly. I did in fact have an index.html which did a redirect to "/hal" so it looks like I'd tried that solution in the dim and distant past. Obviously once I had pointed "/" at "/hal" using it's docBase attribute (in

RE: Repeated "load-on-startup" niggle

2004-01-23 Thread Mike Curwen
d modify the root context to be NOT the same docbase as /hal) > -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: Friday, January 23, 2004 9:10 AM > To: Tomcat Users List > Subject: RE: Repeated "load-on-startup" niggle > > >

RE: Repeated "load-on-startup" niggle

2004-01-23 Thread Shapira, Yoav
Howdy, But he wants to redirect all requests, not just those for /. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Mike Curwen [mailto:[EMAIL PROTECTED] >Sent: Friday, January 23, 2004 10:10 AM >To: 'Tomcat Users List' >Subject: RE: Repeated

RE: Repeated "load-on-startup" niggle

2004-01-23 Thread Shapira, Yoav
Howdy, >Thanks. That's exactly what I'd started to use. What's >the best way to add the "/hal" and redirect while preserving all >the request parameters etc. > >i.e. > > Original URL = /somedir/somefile.html > > Filtered URL = /hal/somedir/somefile.html > >Should I be using a reques

RE: Repeated "load-on-startup" niggle

2004-01-23 Thread Mike Curwen
> From: Chris Ward [mailto:[EMAIL PROTECTED] > Sent: Friday, January 23, 2004 9:02 AM > To: Tomcat Users List > Subject: RE: Repeated "load-on-startup" niggle > > > Thanks. That's exactly what I'd started to use. What's > the best way to a

RE: Repeated "load-on-startup" niggle

2004-01-23 Thread Chris Ward
AND REGULATED BY THE FINANCIAL SERVICES AUTHORITY. > -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: Friday, January 23, 2004 2:43 PM > To: Tomcat Users List > Subject: RE: Repeated "load-on-startup" niggle > > &g

RE: Repeated "load-on-startup" niggle

2004-01-23 Thread Shapira, Yoav
Howdy, A javax.servlet.Filter is one nice clean way. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Chris Ward [mailto:[EMAIL PROTECTED] >Sent: Friday, January 23, 2004 5:34 AM >To: Tomcat Users List >Subject: Repeated "load-on-startup" nig

Repeated "load-on-startup" niggle

2004-01-23 Thread Chris Ward
Hi all, In my Tomcat setup I have a Context called "hal" which contains all my applications, HTML everything. Therefore I run things with a URL such including "/hal" Way back when I started with Tomcat I set the "Tomcat Root Context" to point to the same docBase directory so any re

Re: load-on-startup and multiple coyotes

2003-12-02 Thread Christopher Schultz
Steffen, As soon as I start using 2 coyote connectors together with tomcat initializes the database pools twice. Interestingly it keeps initializing things twice even if I add a third coyote. In about two minutes, Yoav Shapira is going to tell you this: "Don't use a servlet to initialize your st

RE: load-on-startup and multiple coyotes

2003-12-02 Thread Shapira, Yoav
Howdy, >As soon as I start using 2 coyote connectors together with startup> >tomcat initializes the database pools twice. >Interestingly it keeps initializing things twice even if I add a third >coyote. You have one load-on-startup tag for each servlet element in web.xml,

load-on-startup and multiple coyotes

2003-12-02 Thread SH Solutions
Hi, once again, after having just solved the welcome-servlet problem (posted separately) I just run into another problem. I have 5 distinct servlets while all inherit from a common base class whose simple purpose is to initialize the applications database pool, read different configuration files a

Re: cannot log from a load-on-startup servlet in init()

2003-09-28 Thread Henrik Vendelbo
> class threw an exception. Going down a little further we find the > "Caused by" error that claims "Log4JLogger does not implement Log". > This is almost certainly due to having more than one copy of the Log4J > classes visible in the class loader hierarchy. > > Craig Thank you soo much. I w

Re: cannot log from a load-on-startup servlet in init()

2003-09-28 Thread Craig R. McClanahan
Henrik Vendelbo wrote: I am running Axis under Tomcat. Both are the latest versions. I chose to use the log4j that is already in the Tomcat directory. When the Axis servlet loads, I get the following. Where does the issue lie ? The important evidence is the "Root Cause" exception below (Except

cannot log from a load-on-startup servlet in init()

2003-09-28 Thread Henrik Vendelbo
I am running Axis under Tomcat. Both are the latest versions. I chose to use the log4j that is already in the Tomcat directory. When the Axis servlet loads, I get the following. Where does the issue lie ? 2003-09-28 18:44:02 StandardWrapper[/dspc:DspcAxisServlet]: Marking servlet DspcAxisServlet

RE: load-on-startup order

2003-03-23 Thread Mayne, Peter
Title: RE: load-on-startup order So load-on-startup only orders within an application, not between applications? Application A is a message handler. Application B is a listener which must register with A when it starts, so A can forward incoming messages to B. Therefore, B can't lazy

Re: load-on-startup order

2003-03-23 Thread James Carman
. Just curious. - Original Message - From: "Mayne, Peter" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Sunday, March 23, 2003 7:42 PM Subject: load-on-startup order > Tomcat 4.1.18 > > I have two applications, A and B, where a serv

Re: load-on-startup order

2003-03-23 Thread Tomas Wredendal
is called first. B's init() attempts to make a connection to A's servlet, but A hasn't started yet, so everything hangs. Am I doing this correctly? Thanks. PJDM With your setup/solution you realy can´t tell if application A will load before B. Load-on-startup orders the servlet

load-on-startup order

2003-03-23 Thread Mayne, Peter
Tomcat 4.1.18 I have two applications, A and B, where a servlet in B depends on a servlet in A being up, so I have in A's web.xml: ... 1 in B's web.xml: ... 5 which should make A start first. However, when Tomcat starts, B's init() is called first. B's init() attem

Default Context & load-on-startup

2003-03-03 Thread Tomcat-RND
Hi, I am Using Tomact 4.1.18, I am unable to locate the Resouces of DefaultContext from a load-on-startup servlet. Is it a limitation or any other configuration required? Where can i get the documenation for this, Anybody please help me out.. Thanks and Regards, Pratt.

Pls:Default Context& load-on-startup

2003-03-03 Thread Tomcat-RND
Hi, I am Using Tomact 4.1.18, I am unable to locate the Resouces of DefaultContext from a load-on-startup servlet. Is it a limitation or any other configuration required? Where can i get the documenation for this, Anybody please help me out.. Thanks and Regards, Pratt

Default Context& load-on-startup

2003-03-03 Thread Tomcat-RND
Hi, I am Using Tomact 4.1.18, I am unable to locate the Resouces of DefaultContext from a load-on-startup servlet. Is it a limitation or any other configuration required? Anybody please help out.. Thanks and Regards, Pratt.

RE: servlet load-on-startup

2003-01-06 Thread Gavin, Rick
et load-on-startup Does load-on-startup still work for anyone under 4.1.18? Just wanted to check for now, I'm not sure if it's a problem with jk or with tomcat itself yet. -- Rasputin :: Jack of All Trades - Master of Nuns -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For a

RE: servlet load-on-startup

2003-01-06 Thread Shapira, Yoav
Hi, Works for me. In the proper order too ;) Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Rasputin [mailto:[EMAIL PROTECTED]] >Sent: Monday, January 06, 2003 5:31 AM >To: [EMAIL PROTECTED] >Subject: servlet load-on-startup > > >Does load-o

servlet load-on-startup

2003-01-06 Thread Rasputin
Does load-on-startup still work for anyone under 4.1.18? Just wanted to check for now, I'm not sure if it's a problem with jk or with tomcat itself yet. -- Rasputin :: Jack of All Trades - Master of Nuns -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional

RE: multiple execution of a 'load-on-startup'

2002-12-02 Thread Shapira, Yoav
>To: Tomcat Users List >Subject: multiple execution of a 'load-on-startup' > >Hello , > >A strange thing about 'load-on-startup' servlet. > >I use tomcat 4.1.12 with multi-host, and log4j 1.2.7 > >in my web.xml i wrote these lines : > > > S

multiple execution of a 'load-on-startup'

2002-11-29 Thread Maxime Colas des Francs
Hello , A strange thing about 'load-on-startup' servlet. I use tomcat 4.1.12 with multi-host, and log4j 1.2.7 in my web.xml i wrote these lines : Setup init.SetupServlet and i put an information log at the end of the servlet init() method at tomcat startup, we c

4.1.10: Equivalent to load-on-startup

2002-09-20 Thread Gavin, Rick
Hi All, I have a servlet that reads in a property file and stores properties in a static class. I want the servlet called when the webapp starts.. web.xml - Settings SettingsServlet configFile my.conf

RE: load-on-startup order seems incorrect...

2002-09-05 Thread Andy Eastham
Jeff, Try 10 and 20 or 1 and 2. I know negative numbers don't necessarily start up before 1, maybe 0 doesn't either. Andy > -Original Message- > From: Jeff Wishnie [mailto:[EMAIL PROTECTED]] > Sent: 05 September 2002 18:22 > To: Tomcat Users List > Subject: lo

load-on-startup order seems incorrect...

2002-09-05 Thread Jeff Wishnie
I have two load-on-startup servlets in my apps web.xml . One is set as 0, the other as 1. According the the servlet spec, containers should guarantee that servlet's with lower load-on-startup values should load first, but according to my logs, Servlet 1 gets its init called before serv

Problem with load-on-startup and jsp pages

2002-06-12 Thread Neil Milne
Hi I'm running Tomcat 4.0.3 in standalone mode and I can't get a JSP page to load on startup. I've put together a test webapp which has one servlet and one jsp page both set to load on startup via the webapp web.xml file and only the servlet is started when the webapp is loa

load-on-startup

2002-03-13 Thread Mark Mackenzie
Greetings. Tomcat 4.0.2 load-on-startup in web.xml I have two servlets, the first one I gave a value of 0 to the load-on-startup element and the second servlet I gave a value of 5. The Servlet 2.3 API Deployment Descriptor(web.xml) DTD talks about load-on-startup

Re: Load-on-startup

2002-03-08 Thread Christopher K . St . John
"PELOQUIN,JEFFREY (Non-HP-Boise,ex1)" wrote: > > However, I have noticed that if I restart the context using the manager, the > servlet are initialized according to their physical order in web.xml, thus > ignoring the load-on-startup tag. > You might want to just go

Load-on-startup

2002-03-07 Thread PELOQUIN,JEFFREY (Non-HP-Boise,ex1)
When tomcat is restarted, the servlets are initialized according to the value in their load-on-startup tags in web.xml. However, I have noticed that if I restart the context using the manager, the servlet are initialized according to their physical order in web.xml, thus ignoring the load-on

RE: jspInit and load-on-startup

2002-03-01 Thread Mark Lines-Davies
--- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: 01 March 2002 15:23 To: 'Tomcat Users List' Subject: RE: jspInit and load-on-startup What does your web.xml file look like for this tag? (Please include the entire declaration.) Randy > -Original Message---

RE: jspInit and load-on-startup

2002-03-01 Thread Mark Lines-Davies
Larry I've downloaded 3.3.1 and it works as expected. many, many thanks Mark -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: 01 March 2002 16:18 To: 'Tomcat Users List' Subject: RE: jspInit and load-on-startup Mark, This is a bug in Tomcat 3.

RE: jspInit and load-on-startup

2002-03-01 Thread Randy Layman
spInit and load-on-startup > > > Hello > > I would like to have a JSP page loaded by Tomcat 3.3 when it > starts up. > > I have added to the web.xml file and my JSP > page looks > like this: > > <%@ page import="java.io.*" contentType="te

RE: jspInit and load-on-startup

2002-03-01 Thread Larry Isaacs
AM > To: [EMAIL PROTECTED] > Subject: FW: jspInit and load-on-startup > > > Hello > > I would like to have a JSP page loaded by Tomcat 3.3 when it > starts up. > > I have added to the web.xml file and my JSP > page looks > like this: > > <%@ page impo

RE: jspInit and load-on-startup

2002-03-01 Thread Mark Lines-Davies
;Hi there"); %> -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Mark Lines-Davies Sent: 01 March 2002 15:12 To: [EMAIL PROTECTED] Subject: jspInit and load-on-startup Hello I would like to have a JS

FW: jspInit and load-on-startup

2002-03-01 Thread Mark Lines-Davies
Hello I would like to have a JSP page loaded by Tomcat 3.3 when it starts up. I have added to the web.xml file and my JSP page looks like this: <%@ page import="java.io.*" contentType="text/xml" %> <%! public void Init(){ System.out.println("Hello World"); } %> <% System.out.pr

load-on-startup in web.xml (was RE: JSP imports and CLASSPATH issues)

2002-02-13 Thread Greer, Darren (MED)
Thanks Greg, worked like a charm! Now for the next question regarding load-on-startup in my web.xml. Other than having an "public void init" method in my servlet, and a servlet definition on the web.xml with load-on-startup, is there anything else that needs to be done? The appl

Re: JSP load-on-startup

2002-01-29 Thread Martin Mauri
f9orro - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 29, 2002 3:55 PM Subject: JSP load-on-startup > I used the following xml in my deployment descriptor expecting Tomcat4 to > generate a servlet from my jsp within

JSP load-on-startup

2002-01-29 Thread JBrawner
I used the following xml in my deployment descriptor expecting Tomcat4 to generate a servlet from my jsp within the work directory. Home /home.jsp 1 Home /home.jsp It appears to have done nothing. The servlet isn't generated until I request hom

Re: automatic shutdown from servlet.init() that is load-on-startup

2001-10-21 Thread simon
Whoops! This is for Tomcat 3.2.3. Sorry. - Original Message - From: "simon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 22, 2001 4:09 PM Subject: Re: automatic shutdown from servlet.init() that is load-on-startup > The way to shutdown t

Re: automatic shutdown from servlet.init() that is load-on-startup

2001-10-21 Thread simon
ett Porter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 22, 2001 3:20 PM Subject: automatic shutdown from servlet.init() that is load-on-startup > Hi, > > I saw a message a while back on this, but don't remember a solution and > failed to f

Re: automatic shutdown from servlet.init() that is load-on-startup

2001-10-21 Thread Brett Porter
ile back on this, but don't >>remember a solution and >>failed to find it in the archives. >> >>I am looking to shutdown Tomcat 4 if a set of >>initialisation functions >>fail. These functions are in the init() method of a >>servlet that is set >>t

Re: automatic shutdown from servlet.init() that is load-on-startup

2001-10-21 Thread E B
> failed to find it in the archives. > > I am looking to shutdown Tomcat 4 if a set of > initialisation functions > fail. These functions are in the init() method of a > servlet that is set > to load on startup (the first). > > Throwing a ServletException doesn'

automatic shutdown from servlet.init() that is load-on-startup

2001-10-21 Thread Brett Porter
Hi, I saw a message a while back on this, but don't remember a solution and failed to find it in the archives. I am looking to shutdown Tomcat 4 if a set of initialisation functions fail. These functions are in the init() method of a servlet that is set to load on startup (the

Re[2]: Tomcat 4.0b7 Load on Startup

2001-08-14 Thread Jonathan Pierce
_Reply Separator Subject:Re: Tomcat 4.0b7 Load on Startup Author: [EMAIL PROTECTED] Date: 8/14/2001 7:05 PM On Tue, 14 Aug 2001, Jonathan Pierce wrote: > Craig wrote: > > >>Servlets that load at startup are loaded from the webapp class loader > >

  1   2   >