Native version is enabled but nodemanager native library could not be loaded | Weblogic

Oracle Weblogic Server

While starting Nodemanager using startNodeManager.sh file if you are getting below error “weblogic.nodemanager.common.ConfigException: Native version is enabled but nodemanager native library could not be loaded” then please follow below workaround/solution to fix it.

/opt/apps/oracle/product/Middleware/jdk160_35/bin/java -client -Xms64m -Xmx512m ‘-XX:MaxPermSize=128m’ ‘-Dbea.home=/opt/apps/oracle/product/Middleware/MyServer/..’ -Xverify:none ‘-Djava.security.policy=/opt/apps/oracle/product/Middleware/MyServer/../wlserver_10.3/server/lib/weblogic.policy’ ‘-Dweblogic.nodemanager.javaHome=/opt/apps/oracle/product/Middleware/jdk160_35’ weblogic.NodeManager -v
<Sep 11, 2013 12:36:37 AM> <INFO> <Loading domains file: /opt/apps/oracle/product/Middleware/wlserver_10.3/common/nodemanager/nodemanager.domains>
Sep 11, 2013 12:36:37 AM weblogic.nodemanager.server.NMServerConfig initDomainsMap
INFO: Loading domains file: /opt/apps/oracle/product/Middleware/wlserver_10.3/common/nodemanager/nodemanager.domains
<Sep 11, 2013 12:36:37 AM> <SEVERE> <Fatal error in node manager server>
weblogic.nodemanager.common.ConfigException: Native version is enabled but nodemanager native library could not be loaded
at weblogic.nodemanager.server.NMServerConfig.initProcessControl(NMServerConfig.java:269)
at weblogic.nodemanager.server.NMServerConfig.<init>(NMServerConfig.java:210)
at weblogic.nodemanager.server.NMServer.init(NMServer.java:182)
at weblogic.nodemanager.server.NMServer.<init>(NMServer.java:148)
at weblogic.nodemanager.server.NMServer.main(NMServer.java:380)
at weblogic.NodeManager.main(NodeManager.java:31)
Caused by: java.lang.UnsatisfiedLinkError: /opt/apps/oracle/product/Middleware/wlserver_10.3/server/native/solaris/sparc/libnodemanager.so: ld.so.1: java: fatal: libucb.so.1: open failed: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at weblogic.nodemanager.util.UnixProcessControl.<init>(UnixProcessControl.java:24)
at weblogic.nodemanager.util.ProcessControlFactory.getProcessControl(ProcessControlFactory.java:22)
at weblogic.nodemanager.server.NMServerConfig.initProcessControl(NMServerConfig.java:267)
… 5 more

Sep 11, 2013 12:36:37 AM weblogic.nodemanager.server.NMServer main
SEVERE: Fatal error in node manager server
weblogic.nodemanager.common.ConfigException: Native version is enabled but nodemanager native library could not be loaded
at weblogic.nodemanager.server.NMServerConfig.initProcessControl(NMServerConfig.java:269)
at weblogic.nodemanager.server.NMServerConfig.<init>(NMServerConfig.java:210)
at weblogic.nodemanager.server.NMServer.init(NMServer.java:182)
at weblogic.nodemanager.server.NMServer.<init>(NMServer.java:148)
at weblogic.nodemanager.server.NMServer.main(NMServer.java:380)
at weblogic.NodeManager.main(NodeManager.java:31)
Caused by: java.lang.UnsatisfiedLinkError: /opt/apps/oracle/product/Middleware/wlserver_10.3/server/native/solaris/sparc/libnodemanager.so: ld.so.1: java: fatal: libucb.so.1: open failed: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at weblogic.nodemanager.util.UnixProcessControl.<init>(UnixProcessControl.java:24)
at weblogic.nodemanager.util.ProcessControlFactory.getProcessControl(ProcessControlFactory.java:22)
at weblogic.nodemanager.server.NMServerConfig.initProcessControl(NMServerConfig.java:267)
… 5 more

 

If you want just to make the server up and running with loosing few functionality like “Node Manager cannot query if a PID is alive nor kill a particular process or monitor a process” then please add below parameter to the nodemanager.properties file and try to restart the nodemanager again.

NativeVersionEnabled=false

If you want a permanent solution then please make sure all the reported missing libraries in logs are present in server/native/solaris/sparc or in /usr/ucblib

you can search for the required missing packages using this url http://pkg.oracle.com/solaris/release/en/index.shtml

 

In case of any ┬ęCopyright or missing credits issue please check CopyRights page for faster resolutions.

Leave a Reply