NoAccessRuntimeException while deploying mBean on weblogic 8.1

NoAccessRuntimeException will be thrown if current JNDI user has not sufficient privileges to some operations on JMX server.

But exception can also occur when InitialContext is not closed after lookup. Problem is really hard to debug as exception is thrown in different thread.

Ways to solve NoAccessRuntimeException:
  1. Add your JNDI user to group administrators in weblogic server.
  2. Find places where you create InitialContext and close it after use!

Here is code snippet:

Leave a Reply


one + = 9