I would like to run a complete SOA/OSB development environment on OSX.
Unfortunately, Oracle 11g (SOA and OSB) is missing OSX installers.
Is it possible to run a native development environment on OSX ?
I need Oracle Enterprise Pack Extensions, OSB extension, jDeveloper and SOA composites to work natively.
Yes! The fact that Oracle doesn't provide a OSX installer doesn't mean these product shouldn't work natively. Most of them are actually 100% Java.
Please follow the instructions below to install you development environment.
Instructions are for 11g 11.1.1.4.0 but were also tested with 11.1.1.5.0. The trick is to run the installer via a Linux VM and migrate the files to OSX.
It doesn't really matter if you get a 32 or 64 bits Linux distribution. However, the installation folder should be the same on Linux and MacOS.
Download the following software, oracle offers native installers for windows and Linux. However you should stick to generic downloads as much as possible. Some of these packages come in several zips, extract files according to oracle directions.
Install the software in the following order
Here comes the trick, copy the oOracle Middleware folder from your Linux VM to OSX. Make sure the location is the same. For instance if you installed under /Oracle/Middleware on Linux, you should copy to /Oracle/Middleware on OSX.
For some obscure reasons, Oracle installers don't recognize the Apple JVM. While not mandatory, it is good practices to fix the issue with the following script.
$ sudo mkdir -p /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/jre/lib
$ cd /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/jre/lib
$ sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/classes/classes.jar rt.jar
Edit file “/Contents/MacOS/eclipse.ini”, append the following lines
-Dweblogic.home=/Oracle/Middleware/wlserver_10.3
-Dharvester.home=/Oracle/Middleware/Oracle_OSB1/harvester
-Dosb.home=/Oracle/Middleware/Oracle_OSB1
-Dosgi.bundlefile.limit=750
-Dosgi.nl=en_US
Now copy the file oracle.osb.ide.link from the folder “oepe/dropins” to “oepemac/dropins” (both under your middleware home).
Oracle_XE is unfortunately not supported on OSX. we will need to run it via a VirtualBox appliance. The good news is that Oracle provides a easy to install RPM.
For reference, we allocated 1cpu, 600MB of ram to our Linux/OracleXE VM.
Configure your web logic development domain. Please refer to this document for instructions. Quick Start Guide for Oracle® SOA Suite 11gR1 (11.1.1.5.0).pdf
Finally, you will need to fix domain startup script as follows
------------- user_projects/domains/DEVdomain/bin/setDomainEnv.sh -------------
index f74490c..8d75c6c 100755
@@ -108,7 +108,7 @@ else
else
JAVA_VENDOR="Unknown"
export JAVA_VENDOR
- JAVA_HOME="/usr/java/jdk1.6.0_21"
+ JAVA_HOME=`/usr/libexec/java_home`
export JAVA_HOME
fi
fi
------------ user_projects/domains/DEVdomain/bin/setSOADomainEnv.sh ------------
index 8c6743b..b92cfa4 100755
@@ -144,6 +144,15 @@ case ${PLATFORM_TYPE} in
fi
export USER_MEM_ARGS
;;
+#-----------------------------------------------------
+# OSX
+#-----------------------------------------------------
+Darwin)
+
+ USER_MEM_ARGS="${PORT_MEM_ARGS}"
+ export USER_MEM_ARGS
+
+ ;;
#-----------------------------------------------------
# Sun OS