aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "file write permission error" Watch "file write permission error" New topic
Author

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)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
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.

Regards,
Biny panackal
binypanackal@gmail.com


Biny Balan
binypanackal@gmail.com
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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 ]
 
wood burning stoves
 
subject: file write permission error