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

Access denied... to /tmp !?

2002-12-02 Thread Simon Brooke
... root cause java.security.AccessControlException: access denied (java.io.FilePermission /tmp read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java( Compiled Code)) Now if I understand what's going on there, the servlet is falling over because it can't read /tmp

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

2002-12-02 Thread Jeanfrancois Arcand
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935 ) ... usual stuf... root cause java.security.AccessControlException: access denied (java.io.FilePermission /tmp read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java( Compiled Code)) Now if I understand

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

2002-12-02 Thread Shapira, Yoav
ChemInformatics -Original Message- From: Simon Brooke [mailto:[EMAIL PROTECTED]] Sent: Monday, December 02, 2002 11:40 AM To: 'Tomcat Users List' Subject: Access denied... to /tmp !? Hi I've been running things under various versions of Tomcat for a long time now, but it's always been Tomcats I've