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

          WebSphere訪問操作系統(tǒng)中文件 權(quán)限問題

          參考:
          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 中找到此文件。此文件包含這些缺省許可權(quán):
          // 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;
          };
          

          如果節(jié)點上有一些服務(wù)器程序需要許可權(quán),而這些許可權(quán)在 server.policy 文件和 server.policy 文件中未定義為缺省值,那么更新 server.policy 文件。缺少許可權(quán)將創(chuàng)建 java.security.AccessControlException 異常。缺少的許可權(quán)在異常數(shù)據(jù)中列示。


          然后重新啟動服務(wù)器

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

          主站蜘蛛池模板: 邵阳县| 平顶山市| 门头沟区| 南雄市| 福贡县| 明光市| 独山县| 抚顺县| 自贡市| 喀什市| 隆昌县| 柯坪县| 东台市| 中牟县| 上犹县| 江西省| 黑水县| 三亚市| 环江| 石河子市| 剑阁县| 汶上县| 嘉兴市| 罗源县| 巴彦淖尔市| 东阿县| 辽宁省| 江安县| 抚远县| 兴和县| 孟村| 弋阳县| 无极县| 松潘县| 博客| 周宁县| 辰溪县| 独山县| 搜索| 睢宁县| 安乡县|