Topic: 求助:java.security.AccessControlException 是什么问题,class如何与权限联系上的?

  Print this page

1.求助:java.security.AccessControlException 是什么问题,class如何与权限联系上的? Copy to clipboard
Posted by: fbtdjs
Posted on: 2005-09-29 15:02

错误输出如下:
[05-9-29 11:57:27:172 CST] 61383565 SystemErr R java.security.AccessControlException: access denied (java.io.FilePermission E:\CTCB\ctcb.web\WebContent\WEB-INF\classes\com\helloasia\tiger\rmi\ConfigServer.class read)
[05-9-29 11:57:27:172 CST] 61383565 SystemErr R at java.security.AccessControlContext.checkPermission(AccessControlContext.java:292)
[05-9-29 11:57:27:172 CST] 61383565 SystemErr R at java.security.AccessController.checkPermission(AccessController.java:476)
[05-9-29 11:57:27:172 CST] 61383565 SystemErr R at java.lang.SecurityManager.checkPermission(SecurityManager.java:538)
[05-9-29 11:57:27:172 CST] 61383565 SystemErr R at java.lang.SecurityManager.checkRead(SecurityManager.java:877)
[05-9-29 11:57:27:172 CST] 61383565 SystemErr R at java.io.File.lastModified(File.java:794)
[05-9-29 11:57:27:172 CST] 61383565 SystemErr R at com.ibm.ws.classloader.ReloadableClassLoader.checkForUpdate(ReloadableClassLoader.java:233)
[05-9-29 11:57:27:172 CST] 61383565 SystemErr R at com.ibm.ws.classloader.ClassLoaderManager.checkAndNotify(ClassLoaderManager.java:392)
[05-9-29 11:57:27:172 CST] 61383565 SystemErr R at com.ibm.ws.classloader.ClassLoaderManager.access$100(ClassLoaderManager.java:43)
[05-9-29 11:57:27:172 CST] 61383565 SystemErr R at com.ibm.ws.classloader.ClassLoaderManager$ReloadTimerTask.run(ClassLoaderManager.java:435)
[05-9-29 11:57:27:172 CST] 61383565 SystemErr R at java.util.TimerThread.mainLoop(Timer.java:447)
[05-9-29 11:57:27:172 CST] 61383565 SystemErr R at java.util.TimerThread.run(Timer.java:397)
网上看了看好像多说与applet有关的,我对applet也不是太熟悉,请知道的同志帮忙解说一下!

2.这个贴子,回复时加了标题Re:后,居然报告标题太长了:( [Re: fbtdjs] Copy to clipboard
Posted by: YuLimin
Posted on: 2005-09-30 14:45

运行%JDK%\bin\下的policytool.exe文件,修改%JDK%\jre\javaws\java.policy策略文件进行相应的权限修改

BTW:这个贴子,回复时加了标题Re:后,居然报告标题太长了:(

3.Re:这个贴子,回复时加了标题Re:后,居然报告标题太长了:( [Re: YuLimin] Copy to clipboard
Posted by: why
Posted on: 2005-10-03 19:12

YuLimin wrote:BTW:这个贴子,回复时加了标题Re:后,居然报告标题太长了:(

标题太长就縮短它吧
例如略去java.security.

4.Re:求助:java.security.AccessControlException 是什么问题,class如何与权限联系上 [Re: fbtdjs] Copy to clipboard
Posted by: YuLimin
Posted on: 2005-10-04 16:05

你看看系统程序中能不能解决一下这个问题,标题自动生成了,在回复时也自动截短超长的内容?

5.Re:求助:java.security.AccessControlException……? [Re: fbtdjs] Copy to clipboard
Posted by: fbtdjs
Posted on: 2005-10-18 10:50

谢谢版主,上次找人帮忙,暂时解决了,是在eclips中加了rmi的插件,然后用了permission java.security.AllPermission。
你说的这个方法我也试过了,但是出现了附件所示的提示,java.policy一定要放在administrator/目录下面吗?


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923