Can't start managed server in Oracle Weblogic 10.3.2

Solution 1:

The problem was that I was running wlst.sh from my home directory. wlst.sh must be run from $WL_HOME/common/nodemanager directory, because it uses the nodemanager.properties in the current directory.

The nodemanager.properties that solved my problem looks like this:

DomainsFile=/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/common/nodemanager/nodemanager.domains  
LogLimit=0  
PropertiesVersion=10.3  
AuthenticationEnabled=true  
NodeManagerHome=/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/common/nodemanager  
JavaHome=/u01/app/oracle/jrmc-3.1.2-1.6.0/jre  
#JavaHome=/usr/java/jdk1.6.0_18  
#LogLevel=INFO  
DomainsFileEnabled=true  
StartScriptName=startWebLogic.sh  
ListenAddress=  
NativeVersionEnabled=true  
ListenPort=5556  
LogToStderr=true  
SecureListener=true  
LogCount=1  
StopScriptEnabled=false  
QuitEnabled=false  
#LogAppend=true  
LogAppend=false  
StateCheckInterval=500  
#CrashRecoveryEnabled=false  
CrashRecoveryEnabled=true  
StartScriptEnabled=true  
LogFile=/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/common/nodemanager/nodemanager.log  
LogFormatter=weblogic.nodemanager.server.LogFormatter  
ListenBacklog=50  

Solution 2:

My nodemanager was launched as a daemon service, and NODEMGR_HOME variable was properly set, but still error was the same.

For me the solution was to run managed server at least once with additional argument:

arg="Arguments=\" -Dweblogic.management.server=localhost:7001\""
prps=makePropertiesObject(arg)
nmStart(ManagedServerName,props=prps)

Nodemanager stores the arguments, and next time simple nmStart(ManagedServerName) works fine.

The same result (additional Arguments stored by nodemanager) is achieved with doing steps (this action is sufficient to perform one time):

    1. run nodemanager
    2. run admin server
    3. go to admin /console and run managed server from there
    3.a (or wlst: connect to admin and run managed)

But in this case your domain has to be configured to use that nodemanager

cd('/')
create(MachineName, 'Machine')
cd('Machine/' + MachineName)
create(MachineName, 'NodeManager')
cd('NodeManager/' + MachineName)
set('ListenAddress', MachineIP)
cd('/')
cd('Server/' + ManagedServerName)
set('Machine', Machine1Name)