Results 1 to 5 of 5
  1. #1
    arpitgadle is offline Member
    Join Date
    Jun 2009
    Posts
    7
    Rep Power
    0

    Default 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.

  2. #2
    dswastik is offline Senior Member
    Join Date
    Dec 2008
    Location
    Kolkata
    Posts
    283
    Rep Power
    7

    Default

    Looks like an OS specific issue. Probably you need rw permission for the directory where the files are being created.

  3. #3
    arpitgadle is offline Member
    Join Date
    Jun 2009
    Posts
    7
    Rep Power
    0

    Default

    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
    Attached Files Attached Files

  4. #4
    dswastik is offline Senior Member
    Join Date
    Dec 2008
    Location
    Kolkata
    Posts
    283
    Rep Power
    7

    Default

    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.

  5. #5
    arpitgadle is offline Member
    Join Date
    Jun 2009
    Posts
    7
    Rep Power
    0

    Default

    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

  1. jsf command link
    By Srikala in forum JavaServer Faces (JSF)
    Replies: 2
    Last Post: 06-29-2010, 03:38 PM
  2. Getting link attachment
    By dynamolalit in forum Advanced Java
    Replies: 0
    Last Post: 08-17-2009, 12:03 PM
  3. How to link VB dll to java
    By ak88 in forum Advanced Java
    Replies: 2
    Last Post: 07-28-2009, 07:27 PM
  4. jsf command link
    By Srikala in forum JavaServer Faces (JSF)
    Replies: 1
    Last Post: 06-25-2009, 09:03 AM
  5. Link for 64 bit JDK.
    By aparna in forum New To Java
    Replies: 0
    Last Post: 03-19-2008, 03:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •