永发信息网

java.security.AccessControlException:

答案:2  悬赏:80  手机版
解决时间 2021-02-12 09:37
  • 提问者网友:且恨且铭记
  • 2021-02-11 18:01
java.security.AccessControlException: access denied (java.util.PropertyPermission logback.statusListenerClass read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
at java.lang.System.getProperty(System.java:688)
at ch.qos.logback.classic.util.StatusListenerConfigHelper.installIfAsked(StatusListenerConfigHelper.java:11)
at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:76)
at org.slf4j.impl.StaticLoggerBinder.initialize(StaticLoggerBinder.java:70)
at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:61)
at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:48)
at org.slf4j.LoggerFactory.(LoggerFactory.java:60)
at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:131)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
at com.maihe.core.web.ResourceListener.(ResourceListener.java:13)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3771)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
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:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
最佳答案
  • 五星知识达人网友:神也偏爱
  • 2021-02-11 19:26
你这个是不是Applet啊,或者访问了你没有权限访问的资源。说说你的运行环境,否则没有办法解决的。
全部回答
  • 1楼网友:愁杀梦里人
  • 2021-02-11 19:54
这是java本身的安全控制问题,在网页上运行的applet,没有经过数字签名不可以访问本地的dsn : city,除非更改java 的安全控制文件 jre_dir/lib/security/java.policy 比如在最后一行加入: permission java.security.allpermission;
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯