access denied (java.io.FilePermission /images read)!求救啊,急急急!!!急死了!!!高手救啊!
我在做文件上传,用jspsmartupload组件做的,在本地上运行没有问题,到服务器上就有问题了,如题,我把那个images文件设为read的,ALL USERB了,还是不行,怎么做啊,
在网上找说是,要去做一个.policy设置,那个我不会创建,不知道怎么用啊!!
救救我!!
------解决方案--------------------我后来是要老板换了服务器了。。。。。。我以前也是这样的问题;
不知道你是用的哪个空间呢?
------解决方案--------------------java.security.AccessControlException: access denied (java.io.FilePermission \img\dashe\1 read)
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
java.security.AccessController.checkPermission(AccessController.java:427)
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
java.lang.SecurityManager.checkRead(SecurityManager.java:871)
java.io.File.exists(File.java:700)
com.jspsmart.upload.SmartUpload.getPhysicalPath(SmartUpload.java:702)
com.jspsmart.upload.File.saveAs(File.java:86)
com.jspsmart.upload.SmartUpload.save(SmartUpload.java:262)
org.apache.jsp.dashe.dashe_005fxiaoxi_005ffabu_jsp._jspService(dashe_005fxiaoxi_005ffabu_jsp.java:57)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
sun.reflect.GeneratedMethodAccessor90.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:244)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
我也遇到上面的人类似的问题,求各为高手相救啊????????????????/