Agile & TDD, Java, Python, PHP, Open Source, ...and Sailing
Tricking Weblogic 32-bit to work on Ubuntu 64-bit

I was having trouble starting my Weblogic 8.13 server on my Ubuntu machine. After some intense debugging and some help from my colleagues, we realized the issue was related to the differing architectures between Weblogic and Ubuntu. I was using 32-bit Weblogic 8.13 and 64-bit Ubuntu.

The issue is in the file ${WL_HOME}/common/bin/commEnv.sh. Around line #190:

LINUX|Linux) arch=`uname -m` if [ -n "${LD_LIBRARY_PATH}" ]; then LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${WL_HOME}/server/lib/linux/${arch}:${WL_HOME}/server/lib/linux/${arch}/oci920_8 else LD_LIBRARY_PATH=${WL_HOME}/server/lib/linux/${arch}:${WL_HOME}/server/lib/linux/${arch}/oci920_8 fi export LD_LIBRARY_PATH ;;

You'll see that calling 'uname -m' on Ubuntu 64-bit will result in 'x86_64'. Unfortunately, 32-bit Weblogic does not come with the x86_64 directories ${WL_HOME}/server/lib/linux/x86_64, therefor the LD_LIBRARY_PATH will have an invalid path, rendering the server useless.

Here's a quick "hack" if you will, to get around the issue. I basically hard-coded an architecture for WLS to believe that I'm running in order to correctly set the library path. Again, around line #190:

LINUX|Linux) # arch=`uname -m` arch="i686"

That's it! Now when your server restarts, the LD_LIBRARY_PATH will set correctly.

Update

This will also work for Weblogic 10. Same file is in your Weblogic 10 installation: ${WL_HOME}/common/bin/commEnv.sh approximate line #214.


0 Comments

Post a Comment
Your comment has been sucessfully added.
Sorry, an unexpected error occured. Please try again later.





CAPTCHA

portrait

Matthew Boston is a software developer and freelance web developer located in Columbus, OH.

Currently, Matthew is working on an enterprise test harness utilizing Python, Java, XML, WSDL, Maven, and Hudson CI.

Also, Matthew is developing a Dropbox-like application that expands upon the idea of a network-shared drive.

More about Matthew.

my LinkedIn profile
Search
Coming Soon
Tag filtering
Comments for readers
Reader-driven ratings for blog entries
Site-wide searching
Tag cloud
RSS feed
Reply-to comments