Tuesday, September 20, 2011

nmConnect, nmStart, nmKill

cd C:\bea103\wlserver_10.3\server\bin
setWLSEnv.cmd

java weblogic.WLST




nmConnect('weblogic', 'weblogic', 'localhost', '5556', 'base_domain', 'C:/bea103/user_projects/domains/base_domain', 'plain')


WLSTException: Error occured while performing nmConnect : Cannot connect to Node Manager.Unexpected response from server: § ? ??F


of course! 5556 is the port for 'ssl', and I was trying to use 'plain' !


nmConnect('weblogic', 'weblogic', 'localhost', '5556', 'base_domain', 'C:/bea103/user_projects/domains/base_domain', 'ssl')

WLSTException: Error occured while performing nmConnect : Cannot connect to Node Manager.Access to domain 'base_domain' for user '
weblogic' denied


edit C:\bea103\user_projects\domains\base_domain\config\nodemanager\nm_password.properties

and enter
username=weblogic
password=weblogic


nmConnect('weblogic', 'weblogic', 'localhost', '5556', 'base_domain', 'C:/bea103/user_projects/domains/base_domain', 'ssl')
Connecting to Node Manager ...
Successfully Connected to Node Manager.

wls:/nm/base_domain> nmStart('AdminServer', 'C:/bea103/user_projects/domains/base_domain')
Starting server AdminServer ...
Error Starting server AdminServer: weblogic.nodemanager.NMException: Exception while starting server 'AdminServer': java.io.IOException: Server failed to start up. See server output log for more details.

the log says:

weblogic.security.SecurityInitializationException: Authentication for user denied


so edit C:\bea103\user_projects\domains\base_domain\servers\AdminServer\security\boot.properties

and enter
username=weblogic
password=weblogic

No comments: