Results 1 to 5 of 5
Thread: Can Any One Check This Link
- 10-07-2009, 12:06 PM #1
Member
- Join Date
- Jun 2009
- Posts
- 7
- Rep Power
- 0
Can Any One Check This Link
Hello,
Pls check this link,
Directory Creation On Server
The thing deployed application does is, it allows the user of the web-app to create a folder on the server with a name of his/her choice and upload his/her files into that folder. Here is what I am getting as Exception
Caught Exception: java.security.AccessControlException: access denied (java.io.FilePermission /var/chroot/home/content/b/r/i/bringlifeto/html/MyDemoDirApp/demodir/testdir write)
Can any body explain me this issue and provide me a correct way to implement it.
- 10-07-2009, 12:16 PM #2
Senior Member
- Join Date
- Dec 2008
- Location
- Kolkata
- Posts
- 280
- Rep Power
- 5
Looks like an OS specific issue. Probably you need rw permission for the directory where the files are being created.
- 10-07-2009, 12:26 PM #3
Member
- Join Date
- Jun 2009
- Posts
- 7
- Rep Power
- 0
Dear Swastik,
Thanks for your prompt response. I have assigned correct permission to the deployed web-application then also it is not working.
Here is the test link for you to check
If you dont mind here is the zip file attached with this post. This web-app works fine locally on Tomcat. Can you please check whats wrong with the code.
Regards,
Arpit
- 10-07-2009, 12:46 PM #4
Senior Member
- Join Date
- Dec 2008
- Location
- Kolkata
- Posts
- 280
- Rep Power
- 5
By permission what I meant to say was os level permission. Most likely you are facing the issue in unix/linux server. You have to assign read-write permission to the directory under which your application is trying to create files/directories.
- 10-07-2009, 01:08 PM #5
Member
- Join Date
- Jun 2009
- Posts
- 7
- Rep Power
- 0
Dear Swastik,
Thanks yaar. You are right the the application is deployed on Linux Server with Apache Tomcat 5.x version. GoDaddy Server(A shared Server).
And the same web application run fine on Windows and Tomcat x(locally).
As you said, I had already assigned read and write permission to the parent folder in which the directory is to be created.
Have you gone through my code? Is there something wrong with it
Regards,
Arpit U. Gadle
Similar Threads
-
jsf command link
By Srikala in forum JavaServer Faces (JSF)Replies: 2Last Post: 06-29-2010, 02:38 PM -
Getting link attachment
By dynamolalit in forum Advanced JavaReplies: 0Last Post: 08-17-2009, 11:03 AM -
How to link VB dll to java
By ak88 in forum Advanced JavaReplies: 2Last Post: 07-28-2009, 06:27 PM -
jsf command link
By Srikala in forum JavaServer Faces (JSF)Replies: 1Last Post: 06-25-2009, 08:03 AM -
Link for 64 bit JDK.
By aparna in forum New To JavaReplies: 0Last Post: 03-19-2008, 02:15 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks