On 4 March 2010 10:40, Florent Georges <li...@fgeorges.org> wrote: > Hi, > > Within my webapp, I try to create a new directory on the file > system by using File.mkdir(). This webapp has the permissions > read & write on the parent directory: > > grant codeBase "file:${catalina.base}/webapps/myapp/-" { > permission java.io.FilePermission "/somewhere/-", "read,write"; > } > > The creation fails, but of course, I do not have any info > (because mkdir returns true or false instead of throwing an > exception). > > Can you run Tomcat with something that traces system calls? strace(1) on most UNIXes, Process Explorer on Windows. Then you can see exactly what mkdir call is being issued - or, if none is issued, you can see that and chase down why.
- Peter