IBM Support

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

Troubleshooting


Problem

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

Symptom

The following error may occur when starting WebLogic Application Server or running the Sterling Health Monitor:

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

This error occurs when WebLogic Anonymous Admin Lookup is not enabled. To use Rule Execution Server with WebLogic, 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.

Error Message

2008-12-16 12:53:46,733:ERROR  :Timer-7: [1229412226733] JNDI naming exception: javax.naming.NoPermissionException: User <anonymous> does not have permission on weblogic.management.adminhome to perform lookup operation. [Root exception is javax.naming.NoPermissionException: User <anonymous> does not have permission on weblogic.management.adminhome to perform lookup operation.]: YHMJMSCollectable
2008-12-16 12:53:46,733:ERRORDTL:Timer-7: [1229412226733]java.lang.IllegalArgumentException: JNDI naming exception: javax.naming.NoPermissionException: User <anonymous> does not have permission on weblogic.management.adminhome to perform lookup operation. [Root exception is javax.naming.NoPermissionException: User <anonymous> does not have permission on weblogic.management.adminhome to perform lookup operation.]
        at weblogic.management.Helper.getMBeanHomeForName(Helper.java:110)
        at weblogic.management.Helper.getAdminMBeanHome(Helper.java:38)
        at com.yantra.ycp.hm.jms.WLSQueueBrowser.getQueueDepth(WLSQueueBrowser.java:33)
        at com.yantra.ycp.hm.jms.YHMJMSCollectable.collect(YHMJMSCollectable.java:52)
        at com.yantra.ycp.hm.jms.YHMSchedulableJMSMonitor.run(YHMSchedulableJMSMonitor.java:46)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
: YHMJMSCollectable

Resolving The Problem

To enable Anonymous Admin Lookup Enabled parameter, follow the instructions below as described in the WebLogic documentation.

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 Configurations, 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.

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

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.0;8.5;8.0;7.11","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}},{"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Maintenance","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"}],"Version":"9.2.1;9.2;9.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

NFX4568

Document Information

Modified date:
16 June 2018

UID

swg21554298