问题:
weblogic start 报错
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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/wls1036/wlserver/server/native/linux/i686/libnodemanager.so: /opt/wls1036/wlserver/server/native/linux/i686/libnodemanager.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) 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 |
解决:
weblogic用i686库错了,这是 64 位服务器
改用 64位库
编辑 wlserver/common/bin/commEnv.sh 在文件最前边 增加
1 |
export LD_LIBRARY_PATH="/opt/wls1036/wlserver/server/native/linux/x86_64/" |
参考: