Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

file write permission error

 
biny panackal
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
biny panackal
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic