Re: Path problem

2009-03-16 Thread popprem
; >> The javadoc says the argument is a path, but I don't know the full >> path, only relative to Tomcat, and I don't really know where Tomcat is. >> Also how do I create a file under "/logs"? >> Is there some way to determine the path to the /logs directo

Re: Path problem

2009-03-13 Thread David Smith
some way to determine the path to the /logs directory in a > format that I can create a file under the logs > directory, without assuming where Tomcat is deployed? > > -d > > Caldarale, Charles R wrote: >>> From: David.Meldrum [mailto:david.meld...@verizon.net] Subject: Re: &

RE: Path problem

2009-03-13 Thread Caldarale, Charles R
> From: David.Meldrum [mailto:david.meld...@verizon.net] > Subject: Re: Path problem > > For example, how do I get a reference to the > "/webapps/MyWebApp/WEB-INF/foo.properties" file? Gregor already told you here: http://marc.info/?l=tomcat-u

Re: Path problem

2009-03-13 Thread David.Meldrum
ly know where Tomcat is. Also how do I create a file under "/logs"? Is there some way to determine the path to the /logs directory in a format that I can create a file under the logs directory, without assuming where Tomcat is deployed? -d Caldarale, Charles R wrote: From: David.Meldr

Re: Path problem

2009-03-13 Thread Gregor Schneider
...and please forgive me all my typos Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 -

Re: Path problem

2009-03-13 Thread Gregor Schneider
Or the war-file doesn't get unpacked, but the app is started from within the war, and the ressource is inside the war. And please note the difference: It's not Class.getRessourceAsStream(), but ServletContext.getRessourceAsStream(); So in your example: ServletContext sctx = event.getServletCont

Re: Path problem

2009-03-13 Thread André Warnier
Caldarale, Charles R wrote: [...] It's generally a bad idea to ever *write* into the webapp deployment space. You have no guarantee that the space is writable, nor that the container will provide any write access. You're much better off writing to files outside of Tomcat's directory structu

RE: Path problem

2009-03-13 Thread Caldarale, Charles R
> From: David.Meldrum [mailto:david.meld...@verizon.net] > Subject: Re: Path problem > > actually in my case I am trying to read/write from a > ContextListenr It's generally a bad idea to ever *write* into the webapp deployment space. You have no guarantee that the sp

Re: Path problem

2009-03-13 Thread David.Meldrum
leInputStream inStrm = new FileInputStream(propPath); . } Is this the proper way to do it? -d Caldarale, Charles R wrote: From: popprem [mailto:popp...@gmail.com] Subject: Path problem David answered the critical part of your question, but I thought I'd take a crack at the res

RE: Path problem

2009-03-13 Thread Caldarale, Charles R
> From: popprem [mailto:popp...@gmail.com] > Subject: Path problem David answered the critical part of your question, but I thought I'd take a crack at the rest. > That means tomcat defaultly points to bin directory "Tomcat" doesn't defaultly [sic] point to anythi

Re: Path problem

2009-03-13 Thread David Smith
popprem wrote: > > Hi, > > I'v really stuck with an issue. I have done a web program using struts > framework. I have a plugin class there for which i have to pass a > configuration file as parameter. That file is in webapps/Myapp/WEB-INF/ > directory. So i mentioned relative path as > ../webap

Path problem

2009-03-12 Thread popprem
ess. hope this helps to give me a good answer. Thanks in advance. -- View this message in context: http://www.nabble.com/Path-problem-tp22490662p22490662.html Sent from the Tomcat - User mailing list archive at Nabble.com. -

Re: Multilevel context path problem

2007-04-10 Thread Johnny Kewl
xt paths must be a pain in the butt. I think I can live without them... but I think they should either make them work or take them out completely. - Original Message - From: "mrpapini" <[EMAIL PROTECTED]> To: Sent: Tuesday, April 10, 2007 7:32 PM Subject: M

Re: Multilevel context path problem

2007-04-10 Thread Rashmi Rubdi
2. does not allow for dynamic reload. Anybody can share light on this? Is there any combinations of settings/naming that would allow me to access webtest app via /test/webtest context? Regards, -pp -- View this message in context: http://www.nabble.com/Multilevel-context-path-problem-tf355439

Re: Multilevel context path problem

2007-04-10 Thread Johnny Kewl
t... programming for context paths must be a pain in the butt. I think I can live without them... but I think they should either make them work or take them out completely. - Original Message - From: "mrpapini" <[EMAIL PROTECTED]> To: Sent: Tuesday, April 10, 20

Multilevel context path problem

2007-04-10 Thread mrpapini
ebtest app via /test/webtest context? Regards, -pp -- View this message in context: http://www.nabble.com/Multilevel-context-path-problem-tf3554394.html#a9924480 Sent from the Tomcat - User mailing list archive at Nabble.com. -

Re: Session cookie path problem

2005-12-01 Thread Christian Rudh
I forgot to mention that I am using Tomcat through Apache and mod_jk. Christian Rudh wrote: > Hi > > I have set up so all users on my server can use Tomcat from their home > directories. They access servlets through > "domain/~user/java/servlet/TestServlet" and it works fine. > > But I tried set

Session cookie path problem

2005-12-01 Thread Christian Rudh
Hi I have set up so all users on my server can use Tomcat from their home directories. They access servlets through "domain/~user/java/servlet/TestServlet" and it works fine. But I tried setting a session value in a servlet and the session value was never stored. So I checked the session cookie t