java.security.AccessControlException: access denied (java.util.PropertyPermi

原创 2015年07月07日 15:40:15
重新把项目导入到新电脑的环境中!启动TOMCAT时报出:
java.security.AccessControlException: access denied (java.util.PropertyPermission LOG_INI write)
 at java.security.AccessControlContext.checkPermission(Unknown Source)
 at java.security.AccessController.checkPermission(Unknown Source)
 at java.lang.SecurityManager.checkPermission(Unknown Source)
 at java.lang.System.setProperty(Unknown Source)
 at com.ebs.manage.front.mainGateServlet.init(mainGateServlet.java:50)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
 at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
 at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
 at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:115)
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1133)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at org.apache.catalina.core.StandardService.start(StandardService.java:448)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

解决办法:在D:\Program Files\jdk6\jre\lib\security\java.policy中加入如下文红色标记就解决了


// Standard extensions get all permissions by default



grant codeBase "file:${{java.ext.dirs}}/*" {
permission java.security.AllPermission;
};


// default permissions granted to all domains


grant { 
// Allows any thread to stop itself using the java.lang.Thread.stop()
// method that takes no argument.
// Note that this permission is granted by default only to remain
// backwards compatible.
// It is strongly recommended that you either remove this permission
// from this policy file or further restrict it to code sources
// that you specify, because Thread.stop() is potentially unsafe.
// See the API specification of java.lang.Thread.stop() for more
        // information.
permission java.lang.RuntimePermission "stopThread";


// allows anyone to listen on un-privileged ports
permission java.net.SocketPermission "localhost:1024-", "listen";


// "standard" properies that can be read by anyone


permission java.util.PropertyPermission "java.version", "read";
permission java.util.PropertyPermission "java.vendor", "read";
permission java.util.PropertyPermission "java.vendor.url", "read";
permission java.util.PropertyPermission "java.class.version", "read";
permission java.util.PropertyPermission "os.name", "read";
permission java.util.PropertyPermission "os.version", "read";
permission java.util.PropertyPermission "os.arch", "read";
permission java.util.PropertyPermission "file.separator", "read";
permission java.util.PropertyPermission "path.separator", "read";
permission java.util.PropertyPermission "line.separator", "read";


permission java.util.PropertyPermission "java.specification.version", "read";
permission java.util.PropertyPermission "java.specification.vendor", "read";
permission java.util.PropertyPermission "java.specification.name", "read";


permission java.util.PropertyPermission "java.vm.specification.version", "read";
permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
permission java.util.PropertyPermission "java.vm.specification.name", "read";
permission java.util.PropertyPermission "java.vm.version", "read";
permission java.util.PropertyPermission "java.vm.vendor", "read";
permission java.util.PropertyPermission "java.vm.name", "read";
permission java.security.AllPermission;
};

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

java.security.AccessControlException: access denied 的解决方法

java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackag...

解决:java.security.AccessControlException: Access Denied Error

在R12.2.0升级到R12.2.2完成后,出现了一个错误,在打开form界面时候,发现forms页面只出现边框,没有任何职责显示: 刚开始感觉应该是重启oacore就好了,因为在R12.2...

java.security.AccessControlException: access denied

今天在写一个解压缩的程序时,设想能够在解压或压缩之前,如果已经存在该文件了,那么就删除,结果真的存在该文件时,抛了异常:Exceptionjava.security.AccessControlExce...

关于java.security.AccessControlException: access denied 的解决方法

今天调试了您的JDBCUpdateApplet程序.您说在直接用ie打开RunApplet.html文件.会在java控制台报java.security.AccessControlException:...

Tomcat启动时报 java.security.AccessControlException: access denied

在Eclipse中用Tomcat启动web服务的时候,有时会报类似与如下的错误 java.security.AccessControlException: access denied (...

Applet虽签名,但是Runtime.getRuntime().exec(cmd)异常:java.security.AccessControlException: access deni

注意:本文出自 “阿飞”的博客 ,如果要转载本文章,请与作者联系! 并注明来源: http://blog.csdn.net/faye0412/article/details/7037078 ...

使用applet遇到java.security.AccessControlException异常

今天写一个使用jta(Telnet/SSH for the JAVA) applet例子, 遇到Socket: can't connect: java.security.AccessControlEx...

JAVA APPLET读本地文件权限问题及解决办法

综合网络上的资料有2中方法: 1,使用数字签名。 2,修改策略文件。这里使用的方法是修改策略文件:首先要确定IE所使用的Jre安装在哪个目录下。但没有找到比较好的方法,一般默认是C:/Progra...
  • gyflyx
  • gyflyx
  • 2011-05-27 21:01
  • 7704

关于java.security.AccessControlException: access denied 的解决方法

今天调试一个Applet程序,本来想在程序运行过程中,将中间数据文件通过文件输出流存到客户端,但是java控制台出现异常:     java.security.AccessControlExcept...

jstatd命令

jstatd [options]此命令是一个RMI Server应用程序,提供了对JVM的创建和结束监视,也为远程监视工具提供了一个可以attach的接口 options -nr 当一个存...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)