Wednesday, September 6, 2017

WebLogic 12c node manager startup issue: weblogic.nodemanager.common.ConfigException: Native version is enabled but NodeManager native library could not be loaded

I got this issue when I was starting nodemanager on mac, OS x.
Sep 06, 2017 9:47:27 PM weblogic.nodemanager.server.NMServer writeProcessId
WARNING: NodeManager native library could not be loaded to write process id
java.lang.UnsatisfiedLinkError: no nodemanager in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at weblogic.nodemanager.util.UnixProcessControl.<init>(UnixProcessControl.java:25)
at weblogic.nodemanager.util.ProcessControlFactory.getProcessControl(ProcessControlFactory.java:23)
at weblogic.nodemanager.server.NMServer.writeProcessId(NMServer.java:288)
at weblogic.nodemanager.server.NMServer.writePidFile(NMServer.java:264)
at weblogic.nodemanager.server.NMServer.<init>(NMServer.java:154)
at weblogic.nodemanager.server.NMServer.getInstance(NMServer.java:134)
at weblogic.nodemanager.server.NMServer.main(NMServer.java:589)
at weblogic.NodeManager.main(NodeManager.java:31)

<6 Sep, 2017 9:47:27 PM SGT> <SEVERE> <Fatal error in NodeManager 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:627)
at weblogic.nodemanager.server.NMServerConfig.<init>(NMServerConfig.java:392)
at weblogic.nodemanager.server.NMServer.<init>(NMServer.java:156)
at weblogic.nodemanager.server.NMServer.getInstance(NMServer.java:134)
at weblogic.nodemanager.server.NMServer.main(NMServer.java:589)
at weblogic.NodeManager.main(NodeManager.java:31)
Caused by: java.lang.UnsatisfiedLinkError: no nodemanager in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at weblogic.nodemanager.util.UnixProcessControl.<init>(UnixProcessControl.java:25)
at weblogic.nodemanager.util.ProcessControlFactory.getProcessControl(ProcessControlFactory.java:23)
at weblogic.nodemanager.server.NMServerConfig.initProcessControl(NMServerConfig.java:625) 

Because node manager looks for NodeManager native library but can't find it.
Edit nodemanager.properties and set 
NativeVersionEnabled=true