<< 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


installation in progress - 1


installation in progress - 2


installation in progress - 3


installation in progress - 4


installation in progress - 5


installation in progress - 6


installation in progress - 7


installation in progress - 8


installation in progress - 9


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

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

Hi,

Did you ever find a solution to the error in starting WebLogic Workshop (after a WebLogic Portal install), which start with the message: ""The custom launcher required by Workshop has not been run" ?

I think that this is something required by the WebLogic Portal plug-ins. Without it, Eclipse crashes every time I try to create a project of type "Portal Web Project".

Any suggestions would be very welcome! I had a look a Linux installation, but the startup class seems to be specific to Linux.

Thanks for any help you can give.

John Wheeler.



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.

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

Hi, I am using the Mabook, i followed the steps mention i am getting a fatal error after giving the eclipse home path . Could you please let me know what could be the problem. Any help is useful to me thanks for ur help. Regards Mohan

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

Hi I run all the steps of this guide, but when i go to my bea home i could not see the folder user_projects. It looks that the Weblogic Wizard don`t install this folders. What could be the problem?. My OS is os x 10.5.7

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

Even I am getting the same Problem no user_projetcs dir, any Hint !

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

Hi, After installation when i try to start workshop through QuickStart, it throws "Weblogic Workshop is not supported on this platform" error. Is there any other way to start workshop? I have been struggling on this for last 15 days.

Please help.

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

I get the same error via quickstart, but just starting the eclipse directly from the command line works for me

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

Even I am getting the same Problem no user_projetcs dir, any Hint !

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

There are several typos in the original command line to launch the installer. Here is the full one that worked for me: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -Xmx1024m -Xms512m -Dos.name=unix -jar server103_generic.jar

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

wow... thanks to the author of this article but special thanks to Sebastian for fixing the launch command (adding -Xms part to the command) coz I kept getting OOM errors even after mentioning -Xmx parameter alone..
when i used the following command as-is it all worked like a charm for me.. whoa.. what a freakin' relief 

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

thanks everyone..

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

Thanks. This totally helped me get it installed.

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

my weblogic are successfully installed. Now i have prolem runnig workshop using eclipse luancher, show blog entries said that i need to edit eclipse.ini file, but i'm not sure what to edit. Any clue?

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

Installed WebLogic 10.3 0n Mac OsX 10.6.4 and started server successfully.

<span style="font-style: italic;"><Jun 30, 2010 11:20:47 PM EDT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.> </span><br style="font-style: italic;" /> <span style="font-style: italic;"><Jun 30, 2010 11:20:47 PM EDT> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "base_domain" running in Development Mode> </span><br style="font-style: italic;" /> <span style="font-style: italic;"><Jun 30, 2010 11:20:47 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING> </span><br style="font-style: italic;" /> <span style="font-style: italic;"><Jun 30, 2010 11:20:47 PM EDT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode> </span>


Although, cannot view console in either firefox or safari at http://localhost:7001/console or even at http://127.0.0.1:7001/console

Thanks for your help.

--
Hiren

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

Hi Hiren,

I have just looked at the Oracle weblogic server downloads site and there now is an entry for MAC OS, OK it's a zip file but it's a start..

Thanks for the article.

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

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts.Any way Ill be subscribing to your feed and I hope you post again soon
makeityourring diamond engagement rings

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

I go to your website on occasion and I must mention that I like your template!
http://www.bestcafeshops.com

Add a comment Send a TrackBack