weblogic.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 serverweblogic.

近日在一个原本工作正常的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

 

目录
相关文章
|
Java 应用服务中间件
解决启动tomcat出现的The JRE_HOME environment variable is not defined correctly问题~
解决启动tomcat出现的The JRE_HOME environment variable is not defined correctly问题~
294 0
|
应用服务中间件
解决在启动tomcat出现的The CATALINA_HOME environment variable is not defined correctly问题~
解决在启动tomcat出现的The CATALINA_HOME environment variable is not defined correctly问题~
754 0
|
分布式计算 Hadoop
Unable to load native-hadoop library for your platform解决方法
Unable to load native-hadoop library for your platform解决方法
330 0
|
Java 应用服务中间件
Tomcat 启动报错 : There is insufficient memory for the Java Runtime Environment to continue.
Tomcat 启动报错 : There is insufficient memory for the Java Runtime Environment to continue.
950 0
Tomcat 启动报错 : There is insufficient memory for the Java Runtime Environment to continue.
|
应用服务中间件
The JRE_HOME environment variable is not defined correctly This environment【tomcat闪退】
The JRE_HOME environment variable is not defined correctly This environment【tomcat闪退】
106 0
The JRE_HOME environment variable is not defined correctly This environment【tomcat闪退】
|
应用服务中间件
tomcat闪退[【the jre_home environment variable is not defined correctly this environment variabl】
tomcat闪退[【the jre_home environment variable is not defined correctly this environment variabl】
146 0
tomcat闪退[【the jre_home environment variable is not defined correctly this environment variabl】
|
应用服务中间件
Tomcat闪退,出现The JAVA_HOME environment variable is not defined correctly的解决方案
Tomcat出现The JAVA_HOME environment variable is not defined correctly问题的解决方案
Tomcat闪退,出现The JAVA_HOME environment variable is not defined correctly的解决方案
Embedded web server initialization - jar file default-mimetypes.properties
Embedded web server initialization - jar file default-mimetypes.properties
119 0
Embedded web server initialization - jar file default-mimetypes.properties
|
Java 应用服务中间件
Tomcat server launch debug - OrderAnalytics
Tomcat server launch debug - OrderAnalytics
103 0
Tomcat server launch debug - OrderAnalytics