要使用的正確程式庫只能位於 /opt/sun/appserver/lib 中,因為 lbplugin 是依據這些程式庫建置的。一旦從 /opt/sun/private/lib 移除這兩個程式庫之後,Web Server 便會正常啟動,不出現任何錯誤。
或者,如果您不想刪除 /opt/sun/private/lib 中的程式庫,可以在 Web Server startserv 程序檔的 LD_LIBRARY_PATH 中,將 /opt/sun/appserver/lib 置於 /opt/sun/private/lib 之前;亦即將︰
# Add instance-specific information to LD_LIBRARY_PATH for Solaris and Linux LD_LIBRARY_PATH="${SERVER_LIB_PATH}:${SERVER_JVM_LIBPATH}:${LD_LIBRARY_PATH}: /opt/sun/appserver/lib:/opt/sun/appserver/lbplugin/lib"; export LD_LIBRARY_PATH |
替代為:
# Add instance-specific information to LD_LIBRARY_PATH for Solaris and Linux LD_LIBRARY_PATH="/opt/sun/appserver/lib:/opt/sun/appserver/lbplugin/lib: ${SERVER_LIB_PATH}:${SERVER_JVM_LIBPATH}:${LD_LIBRARY_PATH}"; export LD_LIBRARY_PATH |