aspose file tools*
The moose likes Servlets and the fly likes Problem in Creating or Accessing a File using Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem in Creating or Accessing a File using Servlets" Watch "Problem in Creating or Accessing a File using Servlets" New topic
Author

Problem in Creating or Accessing a File using Servlets

Sam Maivia
Greenhorn

Joined: Jan 22, 2004
Posts: 2
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

Joined: Aug 05, 2002
Posts: 124
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in Creating or Accessing a File using Servlets