This is a simple symptom-cause-solution blog entry only. I hope these blogs will help fellow administrators.
Symptom
Symptom
javax.naming.NoPermissionException: User does not have permission on weblogic.management.home to perform lookup operation.
at weblogic.jndi.internal.ServerNamingNode.checkPermission(ServerNamingNode.java:365)
at weblogic.jndi.internal.ServerNamingNode.checkLookup(ServerNamingNode.java:329)
at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:153)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:188)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:196)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:196)
at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:258)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:363)
at javax.naming.InitialContext.lookup(InitialContext.java:361)
Cause
In releases prior to WebLogic 8.1 sp5, the default value of "AnonymousAdminLookupEnabled" attribute of the domain is "true". But from WebLogic 8.1 sp5, its default value is "false". Hence this exception occurs.
Solution
To change this,in the weblogic console click on the domain. Select "View Domain-wide Security Settings" and set the "Anonymous Admin Lookup Enabled" checkbox. This will solve your problem.
References
None
thanks a lot!
ReplyDelete