Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in Creating or Accessing a File using Servlets

 
Sam Maivia
Greenhorn
Posts: 2
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic