Sunday, May 22, 2011

weblogic.nodemanager.NMException: Access to domain 'soa_domain' for user 'weblogic' denied

You have installed SOA Suite 11g.

You have started your admin server,node manager and managed server

Now open a command console and navigate to following location

BEA_HOME\wlserver_10.3\common\bin\wlst.cmd

Now type in following command to connect to the node manager

wls:/offline> nmConnect('weblogic','welcome1','localhost','5556','soa_domain
','C:\Oracle\Middleware\user_projects\domains\soa_domain','ssl')

Here

weblogic is the user and welcome1 is password

Localhost is name of my host and 5556 is the listener port for node manager.

soa_domain is the name of my domain

When you will execute this command you will find following error


wls:/offline> dumpStack()
This Exception occurred at Mon May 23 10:49:12 IST 2011.
weblogic.nodemanager.NMException: Access to domain 'soa_domain' for user 'weblog
ic' denied
at weblogic.nodemanager.client.NMServerClient.checkResponse(NMServerClie
nt.java:299)
at weblogic.nodemanager.client.NMServerClient.checkResponse(NMServerClie
nt.java:312)
at weblogic.nodemanager.client.NMServerClient.connect(NMServerClient.jav
a:254)
at weblogic.nodemanager.client.NMServerClient.checkConnected(NMServerCli
ent.java:199)
at weblogic.nodemanager.client.NMServerClient.checkConnected(NMServerCli
ent.java:205)
at weblogic.nodemanager.client.NMServerClient.getVersion(NMServerClient.
java:52)
at weblogic.management.scripting.NodeManagerService.verifyConnection(Nod
eManagerService.java:175)
at weblogic.management.scripting.NodeManagerService.nmConnect(NodeManage
rService.java:168)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.python.core.PyReflectedFunction.__call__(Unknown Source)
at org.python.core.PyMethod.__call__(Unknown Source)
at org.python.core.PyObject.__call__(Unknown Source)
at org.python.core.PyObject.invoke(Unknown Source)
at org.python.pycode._pyx2.nmConnect$3(:118)
at org.python.pycode._pyx2.call_function()
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyFunction.__call__(Unknown Source)
at org.python.core.PyObject.__call__(Unknown Source)
at org.python.pycode._pyx20.f$0(:1)
at org.python.pycode._pyx20.call_function()
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyCode.call(Unknown Source)
at org.python.core.Py.runCode(Unknown Source)
at org.python.core.Py.exec(Unknown Source)
at org.python.util.PythonInterpreter.exec(Unknown Source)
at org.python.util.InteractiveInterpreter.runcode(Unknown Source)
at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
at weblogic.management.scripting.WLST.main(WLST.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.WLST.main(WLST.java:29)
weblogic.nodemanager.NMException: Access to domain 'soa_domain' for user 'weblog
ic' denied

as shown below



The reason is that user and password for nodemanager is not mentioned correctly.

Go to following location

C:\Oracle\Middleware\user_projects\domains\soa_domain\config\nodemanager

There you will find a file called nm_password.properties

Take a backup of it and open the file and provide the two attributes

username=weblogic
password=welcome1

Save the file and try to connect again you will be able to connect this time.

No comments: