Re: Can't rename a file using renameTo()

2005-06-22 Thread Christoph Kutzinski
Hi, I would guess that there is a security policy in JBoss that prevents JBoss (and its integrated Tomcat) from writing outside some special directories (e.g. its working directory and the temp directory). There is surely a way to lessen this security restriction, but that is obviously a

RE: Can't rename a file using renameTo()

2005-06-22 Thread Paul French
Kutzinski [mailto:[EMAIL PROTECTED] Sent: 22 June 2005 08:38 To: Tomcat Users List Subject: Re: Can't rename a file using renameTo() Hi, I would guess that there is a security policy in JBoss that prevents JBoss (and its integrated Tomcat) from writing outside some special directories (e.g. its

Can't rename a file using renameTo()

2005-06-21 Thread Kam Lung Leung
Hi, I have a servlet, Servlet-A, that rename a file from /tmp/oldFile to /someDirectory/newFile. The Servlet-A runs fine when it runs by itself in a Red Hat Linux 7.2 server that has jakarta-tomcat-4.1.30 running. However, it false to rename the /tmp/oldFile to /someDirectory/newFile when the

Re: Can't rename a file using renameTo()

2005-06-21 Thread Jason Bainbridge
On 6/21/05, Kam Lung Leung [EMAIL PROTECTED] wrote: Hi, I have a servlet, Servlet-A, that rename a file from /tmp/oldFile to /someDirectory/newFile. The Servlet-A runs fine when it runs by itself in a Red Hat Linux 7.2 server that has jakarta-tomcat-4.1.30 running. However, it false to

Re: Can't rename a file using renameTo()

2005-06-21 Thread Kam Lung Leung
Hi Jason, Thank you for the information. It is a long paragraph. I checked the /SomeDirectory again, and it is the same name. I was able to create directory with the mkdir -p /SomeDirectory/firstSubdirectory/secondSubdirectory and manually created a file by this command touch