WebLogic Server 8.1 on Mac OS X (from Linux installer)

It's a fairly well known fact that you can get WebLogic server 8.1 running on the Mac, thanks to some scripts and instructions published by Rod Chavez earlier in the year. I followed these last night and, give or take a few script tweaks, it does all work. Now that I'm using WebLogic at work, I wanted to take this a step further and install WebLogic Workshop too.

The good news is that is works although I'll write that up tomorrow. For the moment I wanted to write a quick note about an alternative way to install WLS. I have a set of BEA CDs from the JavaOne conference last month that contain the installs for the WebLogic platform (i.e. WLS, Workshop, Portal, WLI, etc) on Win32 and Linux. Having seen blogs saying that the Linux installer does actually work, I decided to give it a go.

The Linux disc contains a 400Mb bin file and extracting this with StuffIt (by double clicking it) is the first step in the install. After about 15 minutes (I'm running a G4 866Mhz), you get an exploded directory called something like platform812_linux32_eval.bin Folder. Inside this folder is a file called AUTORUN.INF and this contains the command that kicks off the installer. As it stands, that doesn't work "out of the box" so I modified it as follows (I have split this across multiple lines at the colon character).

java -Xmx256m -cp .:bids.jar:3rdparty.jar:comdev.jar:wizard.jar:
  wls8120_242_COMP_linux32.jar:wlp8120_242_COMP_linux32.jar:
  wli8120_242_COMP_linux32.jar:psu8120_242_COMP_linux32.jar:
  wlw8120_242_COMP_linux32.jar com.bea.plateng.wizard.WizardController

By default this runs the GUI installer and after a few seconds you get the usual window. Stepping through the installer gives you the chance to set up a BEA home and install any or all of the products in the WebLogic platform.

After the install has completed, you get the chance to run the setup wizard to configure your newly installed WebLogic server and I'm happy to report that this all works too.

All that's left is a quick ./startWebLogic.sh in your server directory and WLS on Mac OS X is up and running.

A widely known problem with WLS on Mac is that the navigation applet in the sidebar doesn't work properly. I actually did see this working today (once!) in Safari although the main pages don't display properly. FireFox (as shown) does a good job of rendering the console and all the features seem usable. The only area I did seem to have problems with is uploading WARs/EARs/etc to be deployed. Perhaps it's just very slow. Speaking of performance, with a clean install, no sample applications and a clean domain/server config, WebLogic server is pretty snappy on my 12" PowerBook and startup time isn't all that bad. Deployment is quick and while JSP page compilation is a little lethargic, once you're running everything works well.

I don't know how well this Linux install compares to the AIX (generic) version but I've encountered no problems so far. Tomorrow I'll write up something about Workshop and Builder.

Tags :


Re: WebLogic Server 8.1 on Mac OS X (from Linux installer)

I have installed 8.1SP2 on OSX with success also, but I could never get the portal to work correctly. Have you tried and had any success getting weblogic portal to run on OSX?

Re: WebLogic Server 8.1 on Mac OS X (from Linux installer)

I don't use Portal - sorry!

Re: WebLogic Server 8.1 on Mac OS X (from Linux installer)

Did you install it just to see it work or are you actually deploying to it. If so, how is it? Performance acceptable?

Re: WebLogic Server 8.1 on Mac OS X (from Linux installer)

Performance is certainly acceptable. I've had Pebble running and it's fine. I won't be able to get our app at work running completely (it needs Oracle and MQ) but will report back if I have any EJB-tier related performance problems.

Re: WebLogic Server 8.1 on Mac OS X (from Linux installer)

I recently updated my installation to 8.1SP3, and it seems that the navigation applet works fine now. My configuration is - OS X 10.3, java build 1.4.2_03-117.1, WL 8.1SP3

Re: WebLogic Server 8.1 on Mac OS X (from Linux installer)

Thanks for the tip - I'll have to download it and give it whirl. BTW, which browsers have you tried the console in?

Re: WebLogic Server 8.1 on Mac OS X (from Linux installer)

Just Safari

Re: WebLogic Server 8.1 on Mac OS X (from Linux installer)

I'm very curious about the performance of this solution.

Do you know anyone who has done server comparisons of the Apple JVM? In relation to the sun jvm, and maybe jrockit?

I know weblogic has some native modules for solaris/linux, so that might throw some comparisons off, but any informal comparisons would be appreciated (1.5x slower, 50% slower, 10% faster, etc). Thanks.

Re: WebLogic Server 8.1 on Mac OS X (from Linux installer)

That would certainly be an interesting comparison although I think one of the hardest things is to get comparable hardware. How do Pentiums stack up against PowerMacs?

Re: WebLogic Server 8.1 on Mac OS X (from Linux installer)

We could argue about that all day, I'm sure. ;o) However, it really doesn't matter. Ideally, I'd test an xserve vs an equally priced dell/ibm box running linux. It's more of a price-performance issue to me. X dollars give me Y performance.

Since we don't have unlimited funds, one of the dual g5's vs a decently high end p4 would yield interesting results. Hopefully, the mac box wouldn't be too far behind. I'm wondering how production ready the apple jvm is for server systems, since I really haven't seen that anywhere.

Re: WebLogic Server 8.1 on Mac OS X (from Linux installer)

Doesn't work for me... I have the latest java update on OSX (1.4.2_05-141)

The installer crashes "updating file permissions" with no errors or anything at all. I tried it as sudo and as myself installing into a directory in my home and in /bea. Any ideas?

Re: WebLogic Server 8.1 on Mac OS X (from Linux installer)

I've not tried it since the last Java update but I still need to download SP3.

Re: WebLogic Server 8.1 on Mac OS X (from Linux installer)

When modifying AUTORUN.INF file, make changes such that the jar files have the same name as in your platform812_linux32_eval.bin Folder. Otherwise you will get "updating file permissions" and the installer crashes.

Re: WebLogic Server 8.1 on Mac OS X (from Linux installer)

(sorry if this is a duplicate post! i typed the wrong email address in my last post, so i'm posting again just i case i screwed up) please share with me, how in the world you all managed to open a linux .bin executable file with stuffit on the mac? i downloaded the suse linux version of the weblogic server 9.2.1 MP1 .bin file. i have stuffit expander 11. i'm running os x 10.4.9 on my powermac g4. if i double click on the server921_linux32.bin file, i get bupkus! if i drag the .bin file onto expander, i get an error saying something to the effect of "this .bin cannot be opened by expander. find out what program created it and for what platform it was created". unix/linux .bin files are platform specific executables (that is why bea has a "generic" installer, after all). for instance, passing the name of the Solaris version of the .bin for wls 921 reports:
   $ file server921_solaris32.bin server921_solaris32.bin: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, stripped
doing the same on the linux version reports:
   $ file server921_linux32.bin server921_linux32.bin: ELF 32-bit LSB executable 80386 Version 1, dynamically linked, stripped
mac .bin files, on the other hand, are macbinary files; which are not typically executables; but instead are a way of combining a "forked" native mac file into a single file as explained here. please, explain how you were able to open these .bin files with stuffit? i am pulling my hair out trying to figure it out! thanks in advance.

Re: WebLogic Server 8.1 on Mac OS X (from Linux installer)

With WebLogic 9.2 StuffIt doesn't allow the files to be opened. However, the files are just executables with a zip appended on the end. This is possible because zips store their index at the end of the file. To extract it, use the unzip command on the bin file.

Add a comment Send a TrackBack