Re: Accessing a directory/file outside of the webapps directory

2010-06-04 Thread André Warnier
Bernard Giannetti wrote: Thanks - I'll try the second method. I don't know if I am or am not running under a security manager. I've just got a standard install of Tomcat - so whatever comes out of the box is what I'm running. In addition to the comment by Chuck : As far as I know, Ubuntu us

RE: Accessing a directory/file outside of the webapps directory

2010-06-04 Thread Caldarale, Charles R
> From: Bernard Giannetti [mailto:thebernmeis...@hotmail.com] > Subject: RE: Accessing a directory/file outside of the webapps > directory > > I've just got a standard install of Tomcat The term "standard install" is ambiguous. For most of us on the mailing list,

RE: Accessing a directory/file outside of the webapps directory

2010-06-04 Thread Bernard Giannetti
s stage...just stumbling my way through the dark! > Date: Fri, 4 Jun 2010 09:46:31 +0100 > From: ma...@apache.org > To: users@tomcat.apache.org > Subject: Re: Accessing a directory/file outside of the webapps directory > > On 04/06/2010 08:54, Bernard Giannetti wrote:

Re: Accessing a directory/file outside of the webapps directory

2010-06-04 Thread Mark Thomas
On 04/06/2010 08:54, Bernard Giannetti wrote: > One method I have found is to define a context.xml file under the servlet's > META-INF directory and within specify (somehow) the path of the DataFiles > directory. Something such as: > > > > In this case, does this also allow access from

Accessing a directory/file outside of the webapps directory

2010-06-04 Thread Bernard Giannetti
Hi, First my configuration: Ubuntu 9.10 Desktop, Tomcat 6.0.20. I have a Java servlet (MyServlet) and from within that servlet I need to access a directory containing data files. The Tomcat directory structure is like this: tomcat webapps MyServlet DataFiles data1.xml