Weblogic 10g on Mac OS X

Fri, 12/09/2008 - 18:57

Our client has just jumped from WLS 10.1 to 10.3. Unfortunately, Oracle have decided a point release was a great time to upgrade the required JVM to 10.6, so I'm back to struggling to get things working.

Currently, the best way seems to be:

1. Hack your JVM

WebLogic's installer won't detect the Apple JVM by default. To convince it that it's kosher, do the following as sudo:

cd /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
mkdir -p jre/bin
mkdir jre/lib
cd jre/bin
ln -s ../../bin/java 
cd ../lib
ln -s ../../../Classes/classes.jar rt.jar

2. Con the installer

Oracle still haven't fixed disc space detection, so you'll need to lie to the installer about your OS.

java -Dos.name=unix -jar server103_generic.jar

3. Knock your memory up a notch

You'll need to modify your <domain>/bin/setDomainEnv.sh file to increase memory settings. I use:

MEM_ARGS=“-Xms512m -Xmx1024m -XX:MaxPermSize=196m”

4. Enjoy the CPU stealing disc space crunching power of WLS

Fun for all, except your overworked laptop.