I have to go through a long hassle of making Weblogic work on my MacBook. Few things which I learned and would like to share:
-Before starting to install you have to trick the installer into thinking that the local JDK is the generic Sun JDK. If you skip this step the installer will not accept the default Mac OS X JDK and complain that it is Invalid.
$ cd /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
$ sudo mkdir -p jre/lib
$ cd jre/lib
$ sudo touch rt.jar
$ sudo touch core.jar
-To Install, run the following command from terminal : (Updated for the "fatal error occurred while installing 10.3.2")
$ java -Xms256m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m -jar -Dos.name=unix -jar server103_generic.jar
-Once installation is completed, Create a new domain through "./config.sh" from "/bea/wlserver_103/common/bin"
-Once the domain is created:
--Need to update the env setting in ".setDomainEnv.sh" file i.e. located at "/user_projects/domains/base_domain/bin".
-- Update the Memory settings. (for the outofmemory issue), I made it look like this:
MEM_ARGS="-Xms256m -Xmx2048m"
export MEM_ARGS
MEM_PERM_SIZE="-XX:PermSize=256m"
export MEM_PERM_SIZE
MEM_MAX_PERM_SIZE="-XX:MaxPermSize=512m"
export MEM_MAX_PERM_SIZE
-- MOST IMPORT step: Make sure your JAVA_VENDOR is set to "Sun" and JAVA_HOME is pointing to right directory. Need to update the following values in the file :
else
if [ "${JAVA_VENDOR}" = "Sun" ] ; then
JAVA_HOME="/Library/Java/Home"
export JAVA_HOME
else
JAVA_VENDOR="Sun"
export JAVA_VENDOR
JAVA_HOME="/Library/Java/Home"
export JAVA_HOME
fi
fi
-- Echo JAVA_HOME and JAVA_VENDOR value to be double sure.
I will post more details and steps soon...
Enjoy !!
-Before starting to install you have to trick the installer into thinking that the local JDK is the generic Sun JDK. If you skip this step the installer will not accept the default Mac OS X JDK and complain that it is Invalid.
$ cd /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
$ sudo mkdir -p jre/lib
$ cd jre/lib
$ sudo touch rt.jar
$ sudo touch core.jar
-To Install, run the following command from terminal : (Updated for the "fatal error occurred while installing 10.3.2")
$ java -Xms256m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m -jar -Dos.name=unix -jar server103_generic.jar
-Once installation is completed, Create a new domain through "./config.sh" from "/bea/wlserver_103/common/bin"
-Once the domain is created:
--Need to update the env setting in ".setDomainEnv.sh" file i.e. located at "/user_projects/domains/base_domain/bin".
-- Update the Memory settings. (for the outofmemory issue), I made it look like this:
MEM_ARGS="-Xms256m -Xmx2048m"
export MEM_ARGS
MEM_PERM_SIZE="-XX:PermSize=256m"
export MEM_PERM_SIZE
MEM_MAX_PERM_SIZE="-XX:MaxPermSize=512m"
export MEM_MAX_PERM_SIZE
-- MOST IMPORT step: Make sure your JAVA_VENDOR is set to "Sun" and JAVA_HOME is pointing to right directory. Need to update the following values in the file :
else
if [ "${JAVA_VENDOR}" = "Sun" ] ; then
JAVA_HOME="/Library/Java/Home"
export JAVA_HOME
else
JAVA_VENDOR="Sun"
export JAVA_VENDOR
JAVA_HOME="/Library/Java/Home"
export JAVA_HOME
fi
fi
-- Echo JAVA_HOME and JAVA_VENDOR value to be double sure.
I will post more details and steps soon...
Enjoy !!
Comments