Oracleweblogic.nodemanager.common.ConfigException: Native version is enabled but nodemanager native library could not be loaded 解决办法

近些年当一个原工作正常化的weblogic web server(操作系统也redhat
64各类系统)上磨安装redis/hadoop等东东,yum
install了相同积聚第3方类库后,重开weblogic时,发现nodemanager无法启动了,报错如下:

严重: 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:245)

        at
weblogic.nodemanager.server.NMServerConfig.<init>(NMServerConfig.java:185)

        at
weblogic.nodemanager.server.NMServer.init(NMServer.java:181)

        at
weblogic.nodemanager.server.NMServer.<init>(NMServer.java:147)

        at
weblogic.nodemanager.server.NMServer.main(NMServer.java:353)

        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:1738)

        at
java.lang.Runtime.loadLibrary0(Runtime.java:823)

        at
java.lang.System.loadLibrary(System.java:1029)

        at
weblogic.nodemanager.util.UnixProcessControl.<init>(UnixProcessControl.java:25)

        at
weblogic.nodemanager.util.Platform.getProcessControl(Platform.java:114)

        at
weblogic.nodemanager.server.NMServerConfig.initProcessControl(NMServerConfig.java:243)

从失误信息上目测,是nodemanager加载native本地库时,版本不匹配,网上搜了同等环抱,找到了解决办法:

丰富环境变量LD_LIBRARY_PATH路径为:

* export MW_HOME=/opt/app/Oracle/Middleware  export BASE_DOMAIN=$MW_HOME/user_projects/domains/base_domain  export
LD_LIBRARY_PATH=$MW_HOME/wlserver_10.3/server/native/linux/x86_64*

瞩目红色部分,退出又登录,再次启动nodemanager,如果还百般,尝试将路子最后之部分换成/linux/i686(总之跟os的版本匹配上就是推行)

除此以外,还有一个主意据说为足以:修改下面这个文件

$MW_HOME/wlserver_10.3/common/nodemanager/nodemanager.properties

找到

NativeVersionEnabled=true

将true改成false

 

相关文章