隨筆 - 34, 文章 - 1, 評論 - 2, 引用 - 0
          數據加載中……

          WebSphere訪問操作系統中文件 權限問題

          參考:
          http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/rsec_serverpolicy.html

          錯誤信息(在Systemout.Log文件中)
                  java.security.AccessControlException: Access denied (java.io.FilePermission  
           解決方法
          修改 server.policy 文件,在 install_root/properties/server.policy 中找到此文件。此文件包含這些缺省許可權:
          // Allow to use ibm jdk extensions
          grant codeBase "file:${was.install.root}/java/ext/-" {
          permission java.security.AllPermission;
          };
          // Allow to use ibm tools
          grant codeBase "file:${was.install.root}/java/tools/ibmtools.jar" {
          permission java.security.AllPermission;
          };
          // Allow to use sun tools
          grant codeBase "file:/QIBM/ProdData/Java400/jdk14/lib/tools.jar" {
          permission java.security.AllPermission;
          };
          // Allow to use sun tools (V5R2M0 codebase)
          grant codeBase "file:/QIBM/ProdData/OS400/Java400/jdk/lib/tools.jar" {
          permission java.security.AllPermission;
          };
          // WebSphere system classes
          grant codeBase "file:${was.install.root}/plugins/-" {
          permission java.security.AllPermission;
          };
          grant codeBase "file:${was.install.root}/lib/-" {
          permission java.security.AllPermission;
          };
          grant codeBase "file:${was.install.root}/classes/-" {
          permission java.security.AllPermission;
          };
          // Allow the WebSphere deploy tool all permissions
          grant codeBase "file:${was.install.root}/deploytool/-" {
          permission java.security.AllPermission;
          };
          // Allow the WebSphere deploy tool all permissions
          grant codeBase "file:${was.install.root}/optionalLibraries/-" {
          permission java.security.AllPermission;
          };
          // Allow Channel Framework classes all permission
          grant codeBase "file:${was.install.root}/installedChannels/-" {
          permission java.security.AllPermission;
          };
          grant codeBase "file:${user.install.root}/lib/-" {
          permission java.security.AllPermission;
          };
          grant codeBase "file:${user.install.root}/classes/-" {
          permission java.security.AllPermission;
          };
          

          如果節點上有一些服務器程序需要許可權,而這些許可權在 server.policy 文件和 server.policy 文件中未定義為缺省值,那么更新 server.policy 文件。缺少許可權將創建 java.security.AccessControlException 異常。缺少的許可權在異常數據中列示。


          然后重新啟動服務器

          posted on 2009-12-09 17:04 河馬虎 閱讀(1446) 評論(0)  編輯  收藏 所屬分類: WebSphere

          主站蜘蛛池模板: 拜泉县| 凤山市| 米易县| 吉林市| 交城县| 武隆县| 攀枝花市| 潞城市| 通州市| 西林县| 亚东县| 澳门| 成安县| 合川市| 仁怀市| 江油市| 汤阴县| 壤塘县| 太康县| 漳州市| 泗洪县| 阜康市| 遂宁市| 勃利县| 东辽县| 同德县| 上饶市| 东阳市| 水城县| 大港区| 湖南省| 扎兰屯市| 开平市| 林西县| 齐河县| 九寨沟县| 彩票| 山西省| 深州市| 新河县| 突泉县|