Re: Access denied... to /tmp !?

2002-12-03 Thread Simon Brooke
On Monday 02 Dec 2002 5:01 pm, Jeanfrancois Arcand wrote: That's the proper behaviour. By default, a web application is only able to read under the context under which it was deployed. If you want to grant access to the /tmp !*be carefull*!, add the following in your catalina.policy file:

RE: Access denied... to /tmp !?

2002-12-03 Thread Shapira, Yoav
Hi, However, if no value is specified in the web.xml, then currently the hard-coded default is /tmp; the thinking being this is it's usually a safe place to write stuff. How about, if no value is specified in web.xml, use javax.servlet.context.tempdir? That's always available as if it were

Re: Access denied... to /tmp !?

2002-12-03 Thread Jeanfrancois Arcand
Simon Brooke wrote: On Monday 02 Dec 2002 5:01 pm, Jeanfrancois Arcand wrote: That's the proper behaviour. By default, a web application is only able to read under the context under which it was deployed. If you want to grant access to the /tmp !*be carefull*!, add the following in your

Re: Access denied... to /tmp !?

2002-12-02 Thread Jeanfrancois Arcand
That's the proper behaviour. By default, a web application is only able to read under the context under which it was deployed. If you want to grant access to the /tmp !*be carefull*!, add the following in your catalina.policy file: grant codeBase file:${catalina.home}/webapps/your context/- {

RE: Access denied... to /tmp !?

2002-12-02 Thread Shapira, Yoav
Howdy, Mr. Arcand already answered, but I wanted to add something: you can use the directory indicated by context property javax.servlet.context.tempdir as your temporary directory, rather than hard-coding /tmp. See the servlet spec, section 3.7.1, for details. Yoav Shapira Millennium