Friday, April 5, 2013

Installing node manager as a Windows service

To install node Manager as a Windows service you should perform following steps:

Step 1 - Install Node Manager as Windows Service:
Execute the following script: FMW_HOME/WL_HOME/server/bin/installNodeMgrSvc.cmd (by example C:\Oracle\Middleware\wlserver_10.3\server\bin\installNodeMgrSvc.cmd).
This should create a Windows Service called "Oracle WebLogic NodeManager (PATH_TO_DOMAIN)". Go to Windows Services and double click it. On the Log On tab, check the option "This Account" and provide the user/password you plan to use to run the WLS under windows.
Click OK and start the service, and next st op the service. This should create default node manager configuration files you could modify in next step.

Step 2 - Configure Node Manager Properties File:
Go to FMW_HOME/WL_HOME/common/nodemanager folder (by example C:\Oracle\Middleware\wlserver_10.3\common\nodemanager) and open file. Change the following properties to:

//If set to true, use the SSL listener, otherwise use the plain socket. There is better solution to set this to false, especially when you start to deal with nodemanager.

//The CrashRecoveryEnabled configuration property allows Node Manager to restart servers after a system crash. The property is not enabled by default.


Finally you can start nodemanager service once again.

If you are trying to automate the environment using Node Manager and WLST and you are trying to Start the Admin Server and all the Managed Server using WLST only. And the Managed servers are to be started for the first time using WLST and Node Manager then you may encounter the below error :

<Feb 21, 2013 5:39:56 AM PST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: 

There are 1 nested errors: Booting as admin server, but servername, UCM_server1, does not match the admin server name, AdminServer
    at weblogic.t3.srvr.ServerServicesManager.startService(
    at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(
    at weblogic.t3.srvr.T3Srvr.initializeStandby(
    at weblogic.t3.srvr.T3Srvr.startup(
    at weblogic.Server.main(


Cause :

The reason for the above error is that when the Managed Server are to be started for the first time using the Node Manager and WLST,  the file ( at %domain_home%/servers/ManagedServer/security/) and file ( %domain_home%/servers/ManagedServer/data/NodeManager/) should be already present.
Solution :

To generate the file , and file use the below WLST command :


wls:/SEOD/serverConfig> nmGenBootStartupProps('UCM_server1')

Successfully generated at C:\Users\Administrator\Desktop\servers


Successfully generated at C:\Users\Administrator\Desktop\serv