<< Installing Apache 2.0.63 | Home | Java for Mac OS X 10.5 Update 2 >>

Running WebLogic Server 10g Release 3 on a Mac

Running WebLogic Server on Mac OSX is not supported. But it doesn't mean that you cannot install, run and evaluate WebLogic Server on your most favorite Mac under the terms of license. Actually it is very possible and here I am writing a detailed instructions.

1. download the installer
Download the installer from the OTN site.
- Oracle BEA Product Downloads

You are required to login with a pre-registered OTN account, not a BEA login-id.
Currently the only installer suitable for Mac OSX is the one shipped for HPUX.
Choose : Oracle WebLogic Server 10.3 - Package Installer > HP > Itanium: 473 MB > server103.generic.jar(login required)

2. tweak the JVM
The WebLogic Server 10.3 installer doesn't recognize Mac OSX's JDK as a valid JDK by default.
You need to create jre/lib/rt.jar and jre/lib/core.jar under your JAVA_HOME as followings:

$ cd /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
$ sudo mkdir jre
$ sudo mkdir jre/lib
$ sudo mkdir jre/lib
$ sudo touch jre/lib/rt.jar
$ sudo touch jre/lib/core.jar


3. install Eclipse
WebLogic Workshop is an Eclipse based IDE.
On Mac OSX you need to install Eclipse manually prior to the WLS installation.
The only applicable version is Eclipse 3.3.2(Europa) with WTP2.0.3.
- Eclipse Project Downloads
The latest version is 3.4(Ganymede) and it is not supported.


WTP installation

4. install WebLogic Server
You can run the installer with following command.
 $/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/binjava -Xmx1024  -Dos.name=unix -jar server103.generic.jar

The installer jar is a double-clickable jar file, but you may hit OutOfMemoryError with that way.



running the installer


installer - 1


installer - 2 : the BEA home can be anywhere you want


installer - 3 : "Complete" should be the best choice


just FYI, the choicees you'll see with "Cumstom" installation


installer - 4 : selecting Eclipse home


You'll see this dialog if you selected non 3.3.2 + WTP 2.0.3 version of Eclipse


installer - 5 : product installation directories - leave the default values


installer - 6 : confirmation of the installation

1" rel="lightbox[wls103]">
installation in progress - 1

" rel="lightbox[wls103]">
installation in progress - 2

3" rel="lightbox[wls103]">
installation in progress - 3

4" rel="lightbox[wls103]">
installation in progress - 4

5" rel="lightbox[wls103]">
installation in progress - 5

6" rel="lightbox[wls103]">
installation in progress - 6

7" rel="lightbox[wls103]">
installation in progress - 7

8" rel="lightbox[wls103]">
installation in progress - 8

9" rel="lightbox[wls103]">
installation in progress - 9

10" rel="lightbox[wls103]">
installation in progress - 10


installation finished - click "Done" to run the QuickStart app if you want


QuickStart

5. configuring the script
The super heavy administration console eats up the permanent generation easily and you'll see OutOfMemoryError with the default script on Mac OSX.
It is as simple as just modify $BEA_HOME/user_projects/domains/base_domain/binsetDomainEnv.sh to tell WLS that you're using a taste of Sun's JVM in order to avoid OOM.
diff setDomainEnv.sh setDomainEnv.sh.bak
85c85
< JAVA_VENDOR="Unknown"
---
> JAVA_VENDOR="Sun"


6. run WLS
use startWebLogic.sh to start WebLogic Server
/Users/yusukey/bea103/user_projects/domains/base_domain/bin$ ./startWebLogic.sh
./startWebLogic.sh: Don't know how to set the shared library path for Darwin.
.
.
JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m
.
WLS Start Mode=Development
.
CLASSPATH=:/Users/yusukey/bea103/patch_wlw1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/Users/yusukey/bea103/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/Users/yusukey/bea103/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/tools.jar:/Users/yusukey/bea103/wlserver_10.3/server/lib/weblogic_sp.jar:/Users/yusukey/bea103/wlserver_10.3/server/lib/weblogic.jar:/Users/yusukey/bea103/modules/features/weblogic.server.modules_10.3.0.0.jar:/Users/yusukey/bea103/wlserver_10.3/server/lib/webservices.jar:/Users/yusukey/bea103/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/Users/yusukey/bea103/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/Users/yusukey/bea103/wlserver_10.3/common/eval/pointbase/lib/pbclient57.jar:/Users/yusukey/bea103/wlserver_10.3/server/lib/xqrl.jar::
.
PATH=/Users/yusukey/bea103/wlserver_10.3/server/bin:/Users/yusukey/bea103/modules/org.apache.ant_1.6.5/bin:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/jre/bin:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin:/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/yusukey/bin:/Library/Java/Home/bin:/Users/yusukey/maven-2.0.6/bin:/usr/X11R6/bin
.
***************************************************
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http://hostname:port/console *
***************************************************
starting weblogic with Java version:
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13-120)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_05-b13-52, mixed mode)
Starting WLS with line:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -Xverify:none -da -Dplatform.home=/Users/yusukey/bea103/wlserver_10.3 -Dwls.home=/Users/yusukey/bea103/wlserver_10.3/server -Dweblogic.home=/Users/yusukey/bea103/wlserver_10.3/server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/Users/yusukey/bea103/patch_wlw1030/profiles/default/sysext_manifest_classpath:/Users/yusukey/bea103/patch_wls1030/profiles/default/sysext_manifest_classpath:/Users/yusukey/bea103/patch_cie660/profiles/default/sysext_manifest_classpath -Dweblogic.Name=AdminServer -Djava.security.policy=/Users/yusukey/bea103/wlserver_10.3/server/lib/weblogic.policy weblogic.Server
<2008/09/20 1??38??18?b JST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 1.6.0_05-b13-52 from Apple Inc.>
<2008/09/20 1??38??19?b JST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3 Fri Jul 25 16:30:05 EDT 2008 1137967 >
<2008/09/20 1??38??20?b JST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<2008/09/20 1??38??20?b JST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
<2008/09/20 1??38??20?b JST> <Notice> <Log Management> <BEA-170019> <The server log file /Users/yusukey/bea103/user_projects/domains/base_domain/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.>
<2008/09/20 1??38??20?b JST> <Error> <Socket> <BEA-000438> <Unable to load performance pack. Using Java I/O instead. Please ensure that libmuxer library is in :'.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java'
>
<2008/09/20 1??38??23?b JST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<2008/09/20 1??38??25?b JST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
<2008/09/20 1??38??25?b JST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<2008/09/20 1??38??25?b JST> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
<2008/09/20 1??38??25?b JST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
<2008/09/20 1??38??25?b JST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
<2008/09/20 1??38??25?b JST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.211.55.2:7001 for protocols iiop, t3, ldap, snmp, http.>
<2008/09/20 1??38??25?b JST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 10.37.129.2:7001 for protocols iiop, t3, ldap, snmp, http.>
<2008/09/20 1??38??25?b JST> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
<2008/09/20 1??38??25?b JST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 192.168.1.97:7001 for protocols iiop, t3, ldap, snmp, http.>
<2008/09/20 1??38??25?b JST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "base_domain" running in Development Mode>
<2008/09/20 1??38??25?b JST> <Warning> <Server> <BEA-002611> <Hostname "rfvsdoc001.nrt1.fastsearch.net", maps to multiple IP addresses: 10.***.**.2, 10.**.***.2, 192.168.*.**, 127.0.0.1>
<2008/09/20 1??38??25?b JST> <Warning> <Server> <BEA-002611> <Hostname "10.***.**.2", maps to multiple IP addresses: 10.***.**.2, 10.**.***.2, 192.168.*.**, 127.0.0.1>
<2008/09/20 1??38??25?b JST> <Warning> <Server> <BEA-002611> <Hostname "10.**.***.2", maps to multiple IP addresses: 10.***.**.2, 10.**.***.2, 192.168.*.**, 127.0.0.1>
<2008/09/20 1??38??25?b JST> <Warning> <Server> <BEA-002611> <Hostname "192.168.*.**", maps to multiple IP addresses: 10.***.**.2, 10.**.***.2, 192.168.*.**, 127.0.0.1>
<2008/09/20 1??38??25?b JST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<2008/09/20 1??38??25?b JST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>


7. accessing the administration console
just hit http://localhost:7001/console
The default UserID / password combination is weblogic / weblogic, not scott / tiger.


login form


administration console on a Mac

Please note that the super-handy dev2dev free license is no longer shipped.
The Redwood Shores-based company is requesting you to buy a license in order to develop your application with WLS.(sigh)



Re: Running WebLogic Server 10g Release 3 on a Mac

Thanks a lot !

I am writing Java EE applications on Oracle BEA Weblogic Server 10g 3 and I believe if my mac could run the heavy application server and workshop, I will feel more satisfied when I spend a lot of time on these code.

anyway, thank you very much.

Re: Running WebLogic Server 10g Release 3 on a Mac

thank you man!  You saved me from having to develop on windows!

Re: Running WebLogic Server 10g Release 3 on a Mac

Thanks for posting it. It's a great resource.
One note:
I had to add -Dos.name=unix to "java ...server_103generic.jar" command to avoid having out of space error during install.
Once again- thanks for the post.

Re: Running WebLogic Server 10g Release 3 on a Mac

Thanks a lot!

I also had to add the os.name argument and add the following line to my startWebLogic.sh:
USER_MEM_ARGS="-Xms256m -Xmx512m -XX:MaxPermSize=256m"&



There is also a small typo at point 4: -Xmx1024 should be -Xmx102m

Re: Running WebLogic Server 10g Release 3 on a Mac

Excellent document, I get WLS up and running, but I have problems finding Eclipse 3.3.2 & WTP 2.0.3 .. From the Eclipse site I have downloaded 3.3.2 & WTP 2.0.3 separately but I get errors... Also When I try to start Workshop I get the message: Weblogic WorkShop is not supported on this plataform. Any Ideas?

Re: Running WebLogic Server 10g Release 3 on a Mac

Thanks for the post. I am going to try to set up my WL according to your instructions. Could You please explain the following statement: "The only applicable version is Eclipse 3.3.2(Europa) with WTP2.0.3. The latest version is 3.4(Ganymede) and it is not supported. " You meant 3.4 is not supported (by Eclipse) for Mac OS X or WL Workshop won't start on Ganymede? P.S. Sorry, I put a wrong comment button and the same comment to your Java for Mac OS X 10.5 Update 2. Sorry for that.

Re: Running WebLogic Server 10g Release 3 on a Mac

For any of you struggling with eclipse here are the more detailed instructions:

To install eclipse get base eclipse from:
http://archive.eclipse.org/eclipse/downloads/drops/R-3.3.2-200802211800/index.php
 Then install WTP dependencies:
http://archive.eclipse.org/webtools/downloads/drops/R2.0/R-2.0.2-20080223205547/

in this order:
http://www.eclipse.org/downloads/download.php?file=/modeling/emf/emf/downloads/drops/2.3.2/R200802051830/emf-sdo-xsd-SDK-2.3.2.zip

http://www.eclipse.org/downloads/download.php?file=/tools/gef/downloads/drops/3.3.2/R200802211602/GEF-SDK-3.3.2.zip

http://www.eclipse.org/downloads/download.php?file=/datatools/downloads/1.5/dtp-sdk_1.5.2_022008.zip

Then use the WTP update site (http://download.eclipse.org/webtools/updates/) to install WTP first install the enabling features 2.0.3 then install the Web Tools Platform WTP 2.0.3

Re: Running WebLogic Server 10g Release 3 on a Mac

Anyone managed to launch Weblogic Workshop from Quicklaunch?

If I run it I get not supported on this platform?

I can launch Eclipse with the Oracle stuff installed into it for workshop but I get an error "The custom launcher required by workshop has not been run. Several Workshop features will not be available. If you do not have the required -startup jar specified in your ini file this will happen.

Re: Running WebLogic Server 10g Release 3 on a Mac

Anyone know how to solve this? I am trying to run config.sh so I can configure my domain, and I get this error:

/config.sh: Don't know how to set the shared library path for Darwin.

The commEnv.sh doesn't know how to handle Darwin and I am not sure which libraries it is wanting to load. (native java libraries I guess). Is there another way to configure a domain? Why is no one else having this problem?

Insufficient Disk Space Exception

Very helpful guide. Especially the part with the Eclipse version since there is big room for confusion there with the different Eclipse versions and builds. Me I downloaded a prepared Eclipse WTP package from here that helped making things faster: http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/europa/winter/eclipse-jee-europa-winter-macosx-carbon.tar.gz

Just one thing though, you need to add an extra argument for specifying the os.name. Otherwise it will not work and you get an Insufficient Disk Space Exception. So in my case the full command is:

/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -Xmx1024m -Dos.name=unix -jar server103_generic.jar

Insufficient Disk Space Exception

I've reflected your comment to the entry body.

Add a comment Send a TrackBack