File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in Creating or Accessing a File using Servlets

 
Sam Maivia
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to create a file and write data into the file using servlets.
While doing so, i get the following error:
java.security.AccessControlException: access denied (java.io.FilePermission tables.txt write)
Even I have changed the folder rights to write for all-user but I am not able to solve this problem.
Sam
 
john guthrie
Ranch Hand
Posts: 124
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
could be a java security problem, which has nothing to do with os (unix or windows) access security. you might need a policy file? see java tutorial on security
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic