jQuery in Action, 2nd edition*
The moose likes JSP and the fly likes file write permission error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "file write permission error" Watch "file write permission error" New topic

file write permission error

biny panackal
Ranch Hand

Joined: Apr 12, 2007
Posts: 72
Dear all,

When i am trying to upload(write) a file to a folder in my live server(godaddy) through jsp it is showing some error like what i am giving below

org.apache.jasper.JasperException: access denied (java.io.FilePermission directory name/ write)
sun.reflect.GeneratedMethodAccessor99.invoke(Unknown Source)

and my class file is not importing java.io.FilePermission class whether it i the reason for it, or else help me to solve this problem

hopping a fast replay form you.

Biny panackal

Biny Balan
Christophe Verré

Joined: Nov 24, 2005
Posts: 14687

If your server is a Unix system, make sure that you have write permission for the directory you are trying to upload into. Which means that the "w" attribute must be set for the web user.

[My Blog]
All roads lead to JavaRanch
biny panackal
Ranch Hand

Joined: Apr 12, 2007
Posts: 72
Thank you for your comment.

I had given all permission to the folder in godaddy server which is a unix based one. But i am still getting the same error. When i searched in web i heard bout some policy file.
[ June 15, 2007: Message edited by: biny panackal ]
Don't get me started about those stupid light bulbs.
subject: file write permission error
Similar Threads
How can I get an applet to write to a client file
Writing to a file
Problem in Creating or Accessing a File using Servlets
Changed was.policy to allow writing to file and didnt work