Re: Accessing static resource during loading of webapp

2012-03-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Farrukh, On 3/29/12 9:02 AM, Farrukh Najmi wrote: > In my webapp I am using java.util.ServiceLoader class to > dynamically load jars using an HttpUrlConnection to the jar served > by the static app in the tomcat instance. Is your webapp hanging durin

Re: Accessing static resource during loading of webapp

2012-03-29 Thread Farrukh Najmi
u trying to read a file in the same webapp or another? -Original Message- From: Farrukh Najmi [mailto:farr...@wellfleetsoftware.com] Sent: Wednesday, March 28, 2012 4:34 PM To: users@tomcat.apache.org Subject: Accessing static resource during loading of webapp I have a webapp that access

Re: Accessing static resource during loading of webapp

2012-03-29 Thread Pid
ing applications, & just wait until the static app is available - but I'd try & avoid this approach if possible. See Host.startStopThreads in the docs. p > Thanks for your kind help. > >> >> p >> >> >>> On 03/28/2012 06:58 PM, Filip Hanik (mai

Re: Accessing static resource during loading of webapp

2012-03-29 Thread Farrukh Najmi
Hanik (mailing lists) wrote: Are you trying to read a file in the same webapp or another? -Original Message- From: Farrukh Najmi [mailto:farr...@wellfleetsoftware.com] Sent: Wednesday, March 28, 2012 4:34 PM To: users@tomcat.apache.org Subject: Accessing static resource during loading of weba

Re: Accessing static resource during loading of webapp

2012-03-29 Thread Pid
- >>> From: Farrukh Najmi [mailto:farr...@wellfleetsoftware.com] >>> Sent: Wednesday, March 28, 2012 4:34 PM >>> To: users@tomcat.apache.org >>> Subject: Accessing static resource during loading of webapp >>> >>> >>> I have a web

Re: Accessing static resource during loading of webapp

2012-03-28 Thread Farrukh Najmi
, Filip Hanik (mailing lists) wrote: Are you trying to read a file in the same webapp or another? -Original Message- From: Farrukh Najmi [mailto:farr...@wellfleetsoftware.com] Sent: Wednesday, March 28, 2012 4:34 PM To: users@tomcat.apache.org Subject: Accessing static resource duri

RE: Accessing static resource during loading of webapp

2012-03-28 Thread Filip Hanik (mailing lists)
Are you trying to read a file in the same webapp or another? > -Original Message- > From: Farrukh Najmi [mailto:farr...@wellfleetsoftware.com] > Sent: Wednesday, March 28, 2012 4:34 PM > To: users@tomcat.apache.org > Subject: Accessing static resource during loading of w

Accessing static resource during loading of webapp

2012-03-28 Thread Farrukh Najmi
I have a webapp that accesses some static resources during startup of the webapp. On Glassfish 3.1.2 this works fine. However on Tomcat 7.0.26 the webapp ciode gets a read timeout when it tries to do an HTTP GET using a URLConnection to a static resource deployed in the same tomcat instance.