Weblogic NodeManager issues

After installing Weblogic Server on many machines in order to create a cluster, we need to create a template in our AdminServer, after that, we have to make a template in order to transfer it to the rest of the servers. There are another way to do this, but I’ll leave this for other post.

Create the template

$ ~/Oracle/Middleware/wlserver_10.3/common/bin/pack.sh -managed=false -domain=../maleficarum/ -template=maleficarum.jar -template_name="maleficarum"

Once the template is created, we have to transfer it to the other ManagedServer via ssh, and then, restore the template:

$ ./Oracle/Middleware/wlserver_10.3/common/bin/unpack.sh -template=maleficarum.jar -domain=./Oracle/Middleware/user_projects/domains/maleficarum

After the replication of the template, we have to tart our AdminServer and enroll out managed server using WSLT :

$ cd ~/Oracle/Middleware/wlserver_10.3/common/bin
$ ./wlst.sh
Initializing WebLogic Scripting Tool (WLST) ...

wls:/offline> connect('weblogic','weblogic','t3://adminserver:7001')

wls:/maleficarum/serverConfig> nmEnroll('/home/usuario/Oracle/Middleware/user_projects/domains/maleficarum','/home/usuario/Oracle/Middleware/wlserver_10.3/common/nodemanager')

Enrolling this machine with the domain directory at /home/usuario/Oracle/Middleware/user_projects/domains/maleficarum ...
Successfully enrolled this machine with the domain directory at /home/usuario/Oracle/Middleware/user_projects/domains/maleficarum.


This will registrer out NodeManager in the cluster, and creates all the needed files; As first parameter pass the domain root directory and the second one is the nodemanager location.

Starting nodemanger

$ cd ~/Oracle/Middleware/wlserver_10.3/common/nodemanager
$ ./startNodeManager.sh

If we get the error «Native version is enabled but nodemanager native library could not be loaded«, we can edit the nodemanager.properties file as :

$ cd Oracle/Middleware/wlserver_12.1/common/nodemanager/
$ cat > nodemanager.properties
$ NativeVersionEnabled=false

From AdminServer console we now start all servers (domain > environment > servers > ManagedServer1 > control)

Deja una respuesta

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Salir /  Cambiar )

Google photo

Estás comentando usando tu cuenta de Google. Salir /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Salir /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Salir /  Cambiar )

Conectando a %s