javax.naming.NoPermissionException的解决

系统 1824 0

在weblogic10中部署了MinAn的工程,访问时报错:

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

之前在我自己的机器上部署就出现了这问题,未能解决,这次在服务器上也出现了,最后查到解决方法:

在控制台中左侧的树形结构中选择domain的名称,在右侧选择Security 标签页,然后把 Anonymous Admin Lookup Enabled 前面的对勾打上 tmp18C ,然后保存更改。

重启服务以后,问题解决。

查到的资料原文(感谢小戚查到的资料):

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

javax.naming.NoPermissionException的解决


更多文章、技术交流、商务合作、联系博主

微信扫码或搜索:z360901061

微信扫一扫加我为好友

QQ号联系: 360901061

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描下面二维码支持博主2元、5元、10元、20元等您想捐的金额吧,狠狠点击下面给点支持吧,站长非常感激您!手机微信长按不能支付解决办法:请将微信支付二维码保存到相册,切换到微信,然后点击微信右上角扫一扫功能,选择支付二维码完成支付。

【本文对您有帮助就好】

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描上面二维码支持博主2元、5元、10元、自定义金额等您想捐的金额吧,站长会非常 感谢您的哦!!!

发表我的评论
最新评论 总共0条评论