Re: ServletContextListener Query

2008-03-31 Thread Sparecreative
Len, you are a genius (in my kitchen anyway). That's exactly the issue. I just checked. I had it set to reload during development, but we don't need it anymore. Thanks again. Z. Len Popp wrote: > > The key is this line: > INFO: Reloading this Context has started > It looks like the webapp i

Re: ServletContextListener Query

2008-03-31 Thread Len Popp
The key is this line: INFO: Reloading this Context has started It looks like the webapp is started, and then *immediately* it's re-loaded & started again. Reloading happens automatically if the app's has the attribute reloadable=true and the app is modified. It could be that the timestamp on one o

Re: ServletContextListener Query

2008-03-30 Thread Sparecreative
> > shy away from these 2.3 Servlet listeners which do not understand > load-on-startup parameter > a.. BEA WebLogic up to 8.1 SP2 > b.. IBM WebSphere 5.x > c.. Oracle OC4J 9.0.3 > Anyone else? > Martin- > - Original Message - > From: "Sparecreative&quo

Re: ServletContextListener Query

2008-03-30 Thread Martin Gainty
-on-startup parameter a.. BEA WebLogic up to 8.1 SP2 b.. IBM WebSphere 5.x c.. Oracle OC4J 9.0.3 Anyone else? Martin- - Original Message - From: "Sparecreative" <[EMAIL PROTECTED]> To: Sent: Saturday, March 29, 2008 9:30 PM Subject: Re: ServletContextListener Query

Re: ServletContextListener Query

2008-03-29 Thread Sparecreative
The original formatting was all screwed up. My apologies. I'm seeing an issue when using a ServletContextListener on Tomcat 6.0.13. Tomcat is triggering the contextInitialized method at startup but then shortly after fires off the contextDestroyed method, followed by the contextInitialized again.

RE: ServletContextListener

2007-06-10 Thread Lakshmi Venkataraman
-Original Message- From: lightbulb432 [mailto:[EMAIL PROTECTED] Sent: Saturday, June 09, 2007 10:30 AM To: users@tomcat.apache.org Subject: ServletContextListener >Can requests potentially arrive at a servlet before the ServletContextListener's contextInitialized method has >completed?

Re: ServletContextListener

2007-06-09 Thread Pid
lightbulb432 wrote: Can requests potentially arrive at a servlet before the ServletContextListener's contextInitialized method has completed? I ask because the method occurs as a notification once the servlet context is ready to accept requests. Is there a chance, then, that a request could begin

Re: ServletContextListener - how to detect http path of web application?

2005-12-22 Thread Frank W. Zammetti
[EMAIL PROTECTED] wrote: One reason a filter would be better is you can fully construct the URL dynamically, including the method and all that. Could you possibly map it to just the initial entry point of your app so that it doesn't fire with each request? Yeah I thought about that... unfor

RE: ServletContextListener - how to detect http path of web application?

2005-12-22 Thread Iain.Shepherd
Frank, > > Martin, I can't get a HttpServletRequest from Filter.init. > > I can get a ServletContext... but I can also get that from a > > ServletContextListener. So I can throw away this silly Filter now. > > One reason a filter would be better is you can fully > construct the URL dynamically,

RE: ServletContextListener - how to detect http path of web application?

2005-12-21 Thread James McGill
> Subject: Re: ServletContextListener - how to detect http path of web > application? We have a similar sounding problem. We want a ContextListener to be able to determine the http path and the port, in order to advertise webapps via ZeroConf MDNS (Rendezvous, Bonjour, whatever th

RE: ServletContextListener - how to detect http path of web application?

2005-12-21 Thread Frank W. Zammetti
On Wed, December 21, 2005 1:10 pm, [EMAIL PROTECTED] said: > Frank, your solution (using the ServletContext) does work. Thanks. Good news (sigh of relief!) > Martin, I can't get a HttpServletRequest from Filter.init. > I can get a ServletContext... but I can also get that from a > ServletContextL

RE: ServletContextListener - how to detect http path of web application?

2005-12-21 Thread Iain.Shepherd
ssage- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: 21 December 2005 17:28 To: Shepherd, Iain: IT (LDN) Cc: Tomcat Users List Subject: Re: ServletContextListener - how to detect http path of web application? Iain- Unless of course you only make this assignment in the init method T

Re: ServletContextListener - how to detect http path of web application?

2005-12-21 Thread Martin Gainty
Iain- Unless of course you only make this assignment in the init method Thanks, Martin- - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Wednesday, December 21, 2005 12:17 PM Subject: RE: ServletContextListener - how to detect http path of web application? Thanks, I mig

RE: ServletContextListener - how to detect http path of web application?

2005-12-21 Thread Iain.Shepherd
solution :-) Iain -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: 21 December 2005 17:00 To: Tomcat Users List Cc: Tomcat Users List Subject: Re: ServletContextListener - how to detect http path of web application? Tim is right, you can't do it directly. You *

Re: ServletContextListener - how to detect http path of web application?

2005-12-21 Thread Frank W. Zammetti
Tim is right, you can't do it directly. You *might* be able to construct it in a roundabout way though... Let's assumg you know the method, http vs. https, and its always one or the other. Let's also assume that the element in web.xml names the application context (i.e., if the URL is http://my

RE: ServletContextListener - how to detect http path of web application?

2005-12-21 Thread Iain.Shepherd
Thanks Tim. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 21 December 2005 11:23 To: Tomcat Users List Subject: Re: ServletContextListener - how to detect http path of web application? There is no way to detect the contextPath on servletInit. It can only be done

Re: ServletContextListener - how to detect http path of web application?

2005-12-21 Thread Tim Funk
There is no way to detect the contextPath on servletInit. It can only be done after the first request. (Using HttpServletRequest.getContextPath()) -Tim [EMAIL PROTECTED] wrote: Hi, Apols for a newbie question, I didn't have much luck with the archives or in Google. In my ServletContextListe