File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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 ( directory name/ write)
sun.reflect.GeneratedMethodAccessor99.invoke(Unknown Source)

and my class file is not importing 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: 14688

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 ]
I agree. Here's the link:
subject: file write permission error
It's not a secret anymore!