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
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problem in Creating or Accessing a File using Servlets
 
Similar Threads
Generate pdf file using Servlets
File Upload Synchronized Servlets
log4j: right path for the log file
No One ?????
Executing JavaBean with JSP in WAS 3.5