在weblogic10中部署了MinAn的工程,訪(fǎng)問(wèn)時(shí)報(bào)錯(cuò):
javax.naming.NoPermissionException: User <anonymous> does not have permission on weblogic.management.adminhome to perform lookup operation.</anonymous>
之前在我自己的機(jī)器上部署就出現(xiàn)了這問(wèn)題,未能解決,這次在服務(wù)器上也出現(xiàn)了,最后查到解決方法:
在控制臺(tái)中左側(cè)的樹(shù)形結(jié)構(gòu)中選擇domain的名稱(chēng),在右側(cè)選擇Security 標(biāo)簽頁(yè),然后把 Anonymous Admin Lookup Enabled 前面的對(duì)勾打上
,然后保存更改。
重啟服務(wù)以后,問(wèn)題解決。
查到的資料原文(感謝小戚查到的資料):
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 <anonymous> does not have permission on weblogic.management.adminhome to perform lookup operation. </anonymous>
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
更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號(hào)聯(lián)系: 360901061
您的支持是博主寫(xiě)作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對(duì)您有幫助就好】元
