T
tiewknvc9
Hi!
I am creating a servlet that uploads a file from the users computer to
my servers computer.
When I write the file to the server I am getting continually an access
denied message. Which sux, because Im paying for the space on the
serve, why cant I write to it programatically?!
Anyway Im wondering if there is a certain server setting that I can ask
them to change, or a permission that i should be asking for, or
something. I mean surely other people must want to write files to
their servers, right?
Thanks for any (non-evil) thoughts, including a better hosting service
that is cheap (not making any money off of site).
Thanks! Error message is below.
org.apache.jasper.JasperException: access denied
(java.io.FilePermission /pleaseWork.jb 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.GeneratedMethodAccessor326.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:266)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)
I am creating a servlet that uploads a file from the users computer to
my servers computer.
When I write the file to the server I am getting continually an access
denied message. Which sux, because Im paying for the space on the
serve, why cant I write to it programatically?!
Anyway Im wondering if there is a certain server setting that I can ask
them to change, or a permission that i should be asking for, or
something. I mean surely other people must want to write files to
their servers, right?
Thanks for any (non-evil) thoughts, including a better hosting service
that is cheap (not making any money off of site).
Thanks! Error message is below.
org.apache.jasper.JasperException: access denied
(java.io.FilePermission /pleaseWork.jb 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.GeneratedMethodAccessor326.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:266)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)