javax.naming.NoPermissionException的解決

來源:互聯網
上載者:User

在weblogic10中部署了MinAn的工程,訪問時報錯:

javax.naming.NoPermissionException: User does not have permission on weblogic.management.adminhome to perform lookup operation.

之前在我自己的機器上部署就出現了這問題,未能解決,這次在伺服器上也出現了,最後查到解決方案:

在控制台中左側的樹形結構中選擇domain的名稱,在右側選擇Security 標籤頁,然後把 Anonymous Admin Lookup Enabled 前面的對勾打上,然後儲存更改。

重啟服務以後,問題解決。

查到的資料原文(感謝小戚查到的資料):

You need to enable anonymous admin lookup. To do so please following the instructions below as described in the documentation:

To use Rule Execution Server with WebLogic 9.2, the option Anonymous Admin Lookup Enabled must be set to true. This flag provides the MBean API with read-only access to WebLogic Server MBeans. Registration of full Rule Execution Server management and XU MBeans requires this access.

You can modify the option through the command line script:

Dweblogic.management.anonymousAdminLookupEnabled=true

Alternatively:

   1. Open the WebLogic Server Administration Console.
   2. In the Domain Structure click the name of your domain.
   3. In the Settings page click the Security tab.
   4. In the Change Center click Lock & Edit.
   5. In the Security page under General, select Anonymous Admin Lookup Enabled and click Save.
   6. In the Change Center click Activate Changes.

If this option is disabled, when starting deployment of the management console (EAR file) the following exception is thrown:

javax.naming.NoPermissionException: User does not have permission on weblogic.management.adminhome to perform lookup operation.

If this option is disabled, when starting deployment of the XU RAR an exception is also thrown.

To verify the setting of the Anonymous Admin Lookup Enabled option through the WebLogic Administration Console, see the Domain: Security: General page in the Administration Console or the attribute:

SecurityConfigurationMBean.AnonymousAdminLookupEnabled

For more information, refer to the WebLogic documentation at:

http://edocs.beasys.com/wls/docs90/admin_ref/weblogicServer.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.