隨筆 - 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 河馬虎 閱讀(1441) 評論(0)  編輯  收藏 所屬分類: WebSphere

          主站蜘蛛池模板: 正安县| 太白县| 平南县| 和林格尔县| 乌什县| 元谋县| 胶南市| 鸡东县| 阿鲁科尔沁旗| 洛隆县| 贵德县| 亳州市| 久治县| 东光县| 土默特左旗| 阳新县| 钦州市| 宜兴市| 论坛| 都安| 林芝县| 绍兴县| 嘉义县| 西安市| 周口市| 长兴县| 沾益县| 分宜县| 沿河| 交口县| 日喀则市| 安泽县| 犍为县| 辽宁省| 含山县| 贵州省| 临泽县| 长泰县| 商丘市| 璧山县| 日照市|