Configure Node Manager in Weblogic and administer Managed server

Requirement – How to configure node manager with weblogic and administer Managed server

Solutions- I have provided below steps to accomplish this task.

-> Should have an machine accroding to Os. Either unix machine or machine
-> Start startNodeManager.sh in $MW_HOME/server/bin
-> Check if nodeManager.properties files is there
-> If file is there then make StartScriptEnabled=true
-> Then go to $MW_HOME/wlserver_10.3/common/bin
-> then go with command – ./wlst.sh
-> then go with command – connect(‘weblogic’,’welcome1′,’t3://192.168.228.134:7001′)
-> then type command – nmEnroll(‘/u01/app/oracle/Oracle/middleware/user_projects/domains/ucm_domain’,’/u01/app/oracle/Oracle/middleware/wlserver_10.3/common/nodemanager’)
-> If you successfuly enrolled then go to admin console and start managed server.
-> Then be happy and smile…..

Now you can see this video as well.

Happy Learning Weblogic with Vinay Kumar in techartifact……

Resolved- [Management:141191]The prepare phase of the configuration update failed with an exception

While working in python script, i got this error.I found cause of the error is , i have an up and running managed server and i deleted that managed server through an wlst script.
While deleting server, when implement activate method in script i got this large and ugly error.-

An error occurred during activation of changes, please see the log for details.
Message icon – Error [Management:141191]The prepare phase of the configuration update failed with an exception:

Solutions-
-> First thing never try to delete any managed server which is up and running.First shut down and then closed it.

Follow below steps to get rid of this error

-> Stop the Admin Server & Managed Servers which is up and running.
-> On your Admin Server cd to $WLS_HOME\user_projects\domains\base_domain.
-> Delete all files in pending and servers/domain_bak directory.
-> Start the Admin Server & Managed Servers.
-> Login the weblogic Admin Console and click on ReleaseConfiguration button.
-> Perform the same changes now.

Thats it. 🙂

Happy weblogic learning with Vinay Kumar in techartifact….

Resolved – java.lang.ClassNotFoundException: weblogic.WLST

If you working with Wlst scripts or you wrote some python script and when you try to run the scripts

you can faces this weird error-

Exception in thread “main” java.lang.NoClassDefFoundError: weblogic.WLST
at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Caused by: java.lang.ClassNotFoundException: weblogic.WLST not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at gnu.java.lang.MainThread.run(libgcj.so.7rh)

Cause – Reason can be weblogic.jar or jar which contains weblogic.WLST class is not set into classpath.you need to set the classpath

Solution– set the Weblogic environment which includes several environment variables including WL_HOME and JAVA_HOME among others. The best way to set these environment variable is to source the script $MW_HOME/wlserver_10.3/server/bin/setWLSEnv.sh

and go to $MW_HOME/user_project/domain/base_domain/bin/setDomainEnv.sh

You need to execute both the command and please note try to run command in unix like dot space and then command like below

$MW_HOME/wlserver_10.3/server/bin/ . ./setDomainEnv.sh
$MW_HOME/user_project/domain/base_domain/bin/ . ./setDomainEnv.sh

Happy weblogic learning with Vinay Kumar