run WebLogic Server 8.1 on Mac OS X (Panther)

by Rod Chavez


there's more and more development being done on top of Mac OS X. and
PowerBooks (esp. the new 15" model) are rapidly becoming the laptop of choice
for alpha-geeks everywhere. so i thought i'd take advantage of the trailblazing
work done by Sam Pullara here at
BEA, who has been doing his dev work on a
PowerBook for over a year now. he had to write some code to support this, but
using what he's built you should be able to run WLS on your Mac. i've taken his
binaries and some rather terse notes <g>, along with many IM sessions, and
turned them into this post




i've only verified that this works under the latest version of Mac OS X,
codename Panther. while i haven't verified it myself, Sam tells me that it runs
just as well under the previous version, codename Jaguar




next, a disclaimer: running WLS on Mac OS X is not supported by
BEA. Sam, myself and others using Apple hardware here at BEA will try and
support you (answer questions, potentially patch things, etc) but this is would
be totally ad-hoc. if you want BEA to make this a supported (at least for
development) platform, please let
Andrew Littlefield or myself know. since
the decision would really start with Andrew, he's the guy you should contact.
don't be shy <g>




all right, let's do this. the first thing you need to do is check and make sure
your Java environment is working properly. for example, after upgrading to
Panther, mine wasn't. it turns out that the Panther upgrade process can hose
your Java environment depending whether you've installed a particular patch.
since i had this patch on my machine, i got nailed




to test your system, open a terminal window and type "java -version". if you
see "HotSpot not at correct virtual address. Sharing disabled.", your system
has been hosed. to fix your system, follow the instructions in this
Technical
Note
from Apple




once you know the Java environment is running properly on your machine it's
time to go get WLS. start at the following
link.
it gets you most of the way through BEA's dev2dev site, but there are still a
few things you need to do manually:


  1. on the page i've linked you to, you need to select the right OS. in the
    dropdown, in the 2nd section labeled "WebLogic Server Package
    Installer", pick "IBM AIX (5.1, 5.2, 32 bit)" and then
    click on the "Select >>" button to the right of the drop-down

  2. at this point, you will be challenged for a username and password. you
    can't download without giving marketing its due <g>. if you don't have a
    dev2dev account, getting one is trivial. there's a register button on the login
    page that lets you sign up. once you've either logged in or registered,
    you'll come back to the right spot in the download process

  3. once past that, you'll see a page asking if you're downloading a server
    you've already paid for, or do you want to evaluate a server first. BEA now
    provides a "developer license" where you can get and run the server for free
    for 1-year, as long as you don't "put it into production". so just select
    "I would like to evaluate this product" and then click
    "Next >>"

  4. you'll now see a form asking some questions about what you want to do with
    the product, blah blah blah. answer however seems best, and then click
    "submit"

    please note that the download process you're forced to go through is
    being streamlined and revamped, so that there will be less marketing/sales gorp
    to deal with. but for now, please ignore it as best you can

  5. next up is the License Agreement. click "I Accept" when you're
    ready

  6. click on the download area that is the closest match to the region you're
    in and your browser should prompt you to open or save. pick save. do not
    open it yet. when saving, make sure the saved name is
    pj_server811_generic.jar. that should be the default, but in case your
    browser did something funny...


you may be wondering why you've just downloaded the WLS for AIX version
when this post is all about running WLS on Mac OS X. well, notice the name of
the JAR you wound up with has generic in the title. it happens to be
that the WLS build that runs best on AIX is the generic one, and so that's the
one to download and run on any platform not directly supported by BEA




now you need to download this ZIP file, which contains
several files to automate the rest of the install and setup process. save the
ZIP alongside the JAR you downloaded from BEA, then do the following:


  1. unzip the ZIP file then step into the created directory as follows:

    unzip wls4mac.zip
    cd wls4mac


  2. run the script in the ZIP file. it will run the installer, configure a
    domain and create a default web-app. note that if you plan on exposing WLS
    on the internet, you should change the password for the user created in the
    silent config script (silentC.txt) before running this command


    ./wlsInstall


  3. the only thing left to do now is start the server. move to the domain
    directory and start the server using the start script located there

    cd /bea/user_projects/domains/wls/
    ./startWebLogic.sh



that's pretty much it to getting WLS installed and running. you should be able
to follow this link,
http://localhost:7001/, to see the default
web-app running. and if you want to read more about WLS 8.1, here's the
online documentation




but that's not the end of our little journey here. there's a few things we can
do to make things better. first off, notice that WLS is listening for HTTP
requests on port 7001. that's ok if all you're doing is development, but if
you want someone within your workgroup or department to access your content, it
sure would be nice if they could hit WLS on port 80. and there's a way to make
that work, using the version of Apache that's built into Mac OS X by default.
essentially, Apache can be made to forward a subset of its URI space. if you
want to do this, here's the recipe:


  1. get Apache started. the instructions (trivial) are here in this article
    Apple posted explaining
    how

  2. add files to Apache configuration. perform the following to commands to
    copy files supplied in the ZIP:

    sudo cp lib/mod_weblogic.so /usr/libexec/httpd
    sudo cp weblogic.conf /etc/httpd/users


  3. kick Apache. perform the following command to restart Apache using this new
    configuration:

    sudo apachectl restart



at this point the following link,
http://localhost/weblogic/ should now
work. it goes to the same location as the link we used before, but now it's on
port 80, not port 7001 (actually, they both now work)




at some point down the road if/when Mac OS X becomes a supported platform for
WebLogic Server, you'll be able to run it on port 80 without going through
Apache. but as Sam pointed out to me in an IM session the other day, this may
not actually be an improvement, since one of the key reasons Apache is in Mac
OS X is to support user file sharing. so it helps to have Apache on port 80 and
just forward when you want it too. oh well, these details can be worked out
later. but if you have an opinion about this, please let us know




now that we're up and running, and available via port 80, how about we try to
make things a bit faster, hmmmm? if this is interesting to you, it turns
out that Sam has just the thing. he ported some of the native-io and
terminal-io code that WLS has for optimizing performance on different platforms.
it's not required, and if all you're doing is development, you might not want
to bother with this. but if you want to squeeze a little more out of WLS on Mac
OS X, add the JNI libraries in the ZIP file to your library path




the JNI libraries are the files in the lib directory of the ZIP file with the
file extension '.jnilib'. so first, decide where you want these files to
live. we'll call that directory $WLS_JNI. then add that directory to
your library path by running one of the following commands. if you're using
csh, then do this:


setenv DYLD_LIBRARY_PATH $DYLD_LIBRARY_PATH:$WLS_JNI

if you're using bash, do this:

export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$WLS_JNI

it should go without saying, but i'll say it anyway <g>, you need to replace
the $WLS_JNI in the above commands with the full path to wherever you
decided to put the JNI libraries




well, that about wraps things up, with one remaining issue, which is browser
support. unfortunately, the WLS console does not do well with the browsers that
ship on Mac OS X. on Safari, things don't work at all. on IE, it's useable, but
the left-hand-pane where a java-applet is supposed to be just shows an error.
all the functionality is available in the main area, but navigation is clunky.
again, i'm just talking about the WLS management console. your app and its
content will be just peachy




my focus in this post has been WebLogic Server 8.1, but i've been asked by
several people about running WebLogic Workshop 8.1 on Mac OS X. there are a
couple of developers who've run it here at BEA, and think things should be ok.
but since i haven't done that myself, i can't verify it. if you have any
problems with WLW, please let us know. again, since Mac OS X isn't a supported
platform, turnaround on issues will be longer. but we'll do what we can



if you got this working on older versions of Mac OS X, let me know. also, do you think that Mac OS X should be a supported development environment for WebLogic 8.1? and what kind of projects would you work on?


47 Comments

jimothy
2004-01-06 14:42:39
Spiffy!
It's good to see that there are at least a few people within BEA with an eye on Mac OS X, as "unofficial" as it may be at this time. Keep up the good work!


If this trend continues, and Apple's release of the G5 XServe, Apple has real potential to be a force in the market place. They've got to fight a lot of bias and resistence, certainly, but their prospects are bright.

anonymous2
2004-01-07 00:43:29
Awesome!!
Great article on a very much needed topic! Please write a few more! Now I want to hear about Weblogic Workshop.


untulis
2004-01-07 10:42:51
Don't *need* that other stuff...
It looks like that ZIP file contains the JNI IO accelerators, so presumably it would make WLS faster, but you don't need them. You can run through the normal installation procedure using the Swing installer (rather than a native one) and it all works. When you do that, then you can create a server and domain using the wizard and be up and running.


On my 1.25 G4 with 896 MB of RAM with a pretty simple app (15 entities, only a couple session beans, no JMS, nothing else fancy), it takes about 55 seconds to launch. Initial JSP compilation feels comparitively slow, but other than that it just feels like normal WLS. (The admin applet is kind of screwy for me, so I just use the HTML links.)


I've only been running it for a couple months, only one node and not really stressing anything, but ex-cow-orkers used the same procedure to get WLS 6 running under JDK 1.3.1 on 10.1. (I was never able to get WLS 7 running... it would look like it would try to allocate memory until it filled the machine and wouldn't ever get to user code.)


Here here for Pure Java!

pmorelli
2004-01-11 10:40:02
performance
I was curious if anyone had tried this and gotten any comparative performance numbers for other platforms, esp against jRocket instances.


I'm curious about apple's JVM performance in general, esp in a server env. Am I making a bad assumption in that it's geared more toward client java apps?


--pete

richardeberhardt
2004-01-13 15:16:49
WebLogic Workshop on Mac OS X
Thanks to Rod's great article and scripts, I was able to get WebLogic Server running on my PowerBook G4.


Anybody have any tips or scripts for getting the Workshop development environment working on OS X?


Thanks,


Rich

anonymous2
2004-01-15 08:55:34
WebLogic Workshop on Mac OS X
I am about to try Rod's tricks to get WLS running on my Mac. I have however been able to use WebLogic Workshop with Mac OS X for quite some while using the Linux download. unzip the bin file you download, and then look in bea/AUTORUN.INF for the command to run. Pick any of them. Launch and install...


You will need to "fix" your JDK under Mac OS X by doing the following commands:


sudo su -
mkdir -p /Library/Java/Home/jre/bin
mkdir /Library/Java/Home/jre/lib
cd /Library/Java/Home/jre/bin
ln -s ../../bin/java
cd ../lib
ln -s ../../../Classes/classes.jar rt.jar


These are necessary otherwise Workshop won't know that /Library/Java/Home is a valid java home.


Good luck,
Tarun

anonymous2
2004-01-15 10:49:06
WebLogic Workshop on Mac OS X
Couple final notes... post Rod's instructions.


I installed Workshop with the generic jar file mentioned in the article. Works great. Make sure to launch Workshop.sh from X11! This allows the Run server functionality to correctly launch an Xterm.


Use the Linux installer afterward if you want the rest of the WebLogic platform installed (i.e. Portal, etc.) You can install these items in the same directory as the original bea home.


Tarun

richardeberhardt
2004-01-15 13:03:25
WebLogic Workshop on Mac OS X
Tarun,


I noticed that the download Rod led us to included a file called :wlw8110_549_COMP_generic32.jar. Is this the file you used to install?


How did you run the install process?


What is X11 and where can I find it?


Thanks,


Rich

supergen
2004-01-22 19:29:53
Thanks a Million
Thank you, thank you, thank you for this post. I have started using OSX as my main development platform for Java development, even though I am developing a Web Services app dev platform running on Web Logic primarily oriented at Windows users. We have .NET clients talking to Web Logic via Web Services. And after this post .NET talking to Web Logic on OSX. Everything works with very little effort including JMS Message Queue support and JDBC database drivers. So my message to other Java developers is: "Try out OSX, this is an amazing platform for Java and just about anything else you want to develop on save .NET."


Dev environment:
IBM Eclipse 3.0M4
JEdit
BBEdit 7.1
Turbo XML
Web Logic 8.1
JBoss 3x,4x
G5 Dual 2GHZ
23" Cinema Display

treddy
2004-01-30 09:11:29
WebLogic Workshop on Mac OS X
To use the Linux install, I downloaded the linux installer from BEA's website. This file comes as platform812_linux32.bin.


mkdir bea
cd bea
unzip /platform812_linux32.bin


now
cat AUTORUN.INF
and run one of the java commands in there
java -mx256m -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


This will launch the installer. Point it at your current bea install when asking for a bea home, and you should be good!


X11 comes on your 3rd Panther disk. see http://www.apple.com/macosx/x11 for more info.


Sorry for the late response,
Tarun

scottellsworth
2004-02-06 13:35:56
Any chance of a Swing Workshop interface?
Howdy,


I installed WLS by following the blog instructions. I then wanted to try workshop, so i downloaded the platform for linux (platform812_linux_bin) and followed the trackback instructions.


I note that workshop.sh pops up an xterm for its evil magic.


Any chance of seeing a pure Swing install for us Mac users who want to use Workshop (or the whole platform)?


Scott

scottellsworth
2004-02-06 13:53:28
Any chance of a Swing Workshop interface?
NB - for those trying out the instructions, the .wlsInstall file has the following lines commented out.


# run the WLS silent installer
# java -jar ../pj_server811_generic.jar -mode=silent -silent_xml=$PWD/silentI.xml


# run the WLS silent config
# /bea/weblogic81/common/bin/config.sh -mode=silent -silent_script=$PWD/silentC.txt


# copy in the default web-app
# cp -r default /bea/user_projects/domains/wls/applications/


Removing the comment characters was needed for the install process to work for me.

scottellsworth
2004-02-06 14:52:40
Any chance of a Swing Workshop interface?
Apologies - just got through working through the demo, and not an XWindow in sight. (Admin: please feel free to delete the post that started this thread.)


I do wish the console (localhost:7001/console) showed something other than a nice menu on the left, and a pile of XML in the window, but I am given to understand that plain old URLs will work just as well.


I note that when I tried to run the workshop via
cd /bea/weblogic81/samples/domains/workshop
./startWebLogic.sh
cd /bea/weblogic81/workshop
./Workshop.sh


it started, but I got build errors when building the sample app. Given my state of knowledge, I suspect pilot error, and will read more examples before I post further.


Sorry for the inconvenience, and it is quite cool that this works on MacOS X.

richardeberhardt
2004-02-08 11:23:22
Deploying Entity EJB's on OS X
I have followed the instructions on this site to install WebLogic server and Workshop. In general, things work well. I have deployed and tested some simple session EJB's without a problem.
I put together a simple BMP EJB to access a PointBase data base. I configured a Connection Pool and a JDBC datasource. The connectivity part seems to be OK since when the server starts, the pointbase log shows the connection doing a select on the systables.
I used the console option "Deploy a New EJB Module". This revealed errors in both my interfaces and deployment descriptors, which I corrected.
Now that I am beyond some of the syntax checking, I keep getting the following error when using the "Deploy a New EJB Module" option:





weblogic.management.ApplicationException:
Exception:weblogic.management.ApplicationException: prepare failed for FoodCustomer
Module: FoodCustomer Error: Exception preparing module: EJBModule(FoodCustomer,status=NEW)



Unable to deploy EJB: FoodCustomer.jar from FoodCustomer.jar:



Compiler failed executable.exec


at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:274)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1277)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2847)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2634)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2584)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2506)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)


java.io.IOException: Compiler failed executable.exec
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:470)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:329)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:337)
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:270)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1277)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2847)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2634)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2584)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2506)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)




at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2588)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2506)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)


I get the same error using the Deployer utility.


I am building all the components and xml by hand to learn how it all comes together. However, the java does compile and the xml's pass validation.

Any help would be appreciated.


Thanks,


Rich

rhulen
2004-02-12 06:23:44
Performance
How is the performance of WLS8.1 on a G4 Powerbook? I have to upgrade my laptop soon and I would really like to get a Mac. I don't want to buy one though if I cannot run the container plus an ide like eclipse without having performance issues.


Any ideas?


Ron

richardeberhardt
2004-02-14 10:44:33
Deploying Entity EJB's on OS X
Sorry for the long post.


Pure programmer error: RMI does not allow a component class to have the same name as the package which contains it. WebLogic did not know how to handle this.


This product runs well on my old G4 PowerBook.


Thanks

richardeberhardt
2004-02-14 10:51:08
Performance
Ron,


I am running WebLogic 8.1 on my old G4 PowerBook (400 mHz - 768 MB) and using Eclipse to do most of the development.


I am mainly using this to learn WebLogic, so this is not critical to my livelihood.


I think it runs pretty well. I generally have the PointBase server, WebLogic server, Eclipse, IE, and Oxygen running at the same time. It's not super fast, but it is not slow either.


Eclipse takes a long time to load, but seems to perform OK for development and unit testing.


Good luck,


Rich

mharper
2004-03-04 13:23:24
Installation not happening
I downloaded the WebLogic jar file and the wls4mac zip file according to the directions.


When I execute wlsInstall, nothing happens except the following error message:


cp: /bea/user_projects/domains/wls/applications: No such file or directory


Inspection of the wlsInstall script shows that virtually all of the script is commented out. What's the deal?

supergen
2004-03-11 17:09:05
Upgrading to 8.1 Service Pack 2 a snap
I had already followed the instructions above to install 8.1 on Panther. I upgraded to 8.1 SP2 by doing the following.


1. Backup bea installation by moving somewhere else.
2. Download 8.1 SP 2 AIX version
3. Double click the downloaded jar file
4. Follow instructions in the installation wizard
5. Create a new domain in the wizard
6. Start the server...perfect.


I think that this process would still work if I hadn't already installed 8.1 via the instructions in the article..but I haven't tested this theory. Comments??


BTW..this OSX WebLogic server has been tested with InfoPath clients, .NET clients and others via Web Services. WebLogic on OSX on really can work as an awesome server environment for Windows/Linux/Mac users, Java, .NET clients, etc...Web Services do work.


BEA..Please support OSX officially. The Mac community will help.

boomkap
2004-03-23 08:01:13
Issues with Node Manager and WlS 7.0 SP4 on panther
I cannot get node manager to work with Weblogic 7.0 SP4 on Panther using JDK 1.3.1.
Looks like there is an issue with JSSE.jar, however i have not been able to find the offending class(es). I get a java.lang.ArrayStoreException.


I can get NodeManager to work WLS 7.0 SP4 using JDK1.4.1 by remving JSSE.jar from the the /System/Library.....Versions/1.4.1/Classes folder. However the server and node manager start up much slower. The SSL communication is also extremely slow, almost un-usable. The console is also extremely slow while clicking the servers tab, or the control tab of any given manager server.
Any idea's about how i could improve the performance or better so get NodeManager and WL 7.0 SP4 working with JDK 1.3.1.
Thanks.

boomkap
2004-03-24 11:55:04
Issues with Node Manager and WlS 7.0 SP4 on panther
Ok i found the offending jar file in the 1.3 JDK that causes issues with SSL for NodeManager and Weblogic.
The offending jar file is jcert.jar in the ext/lib directory of the 131 JDk install. By removing this offending jar file, NodeManager ,WLS 7 and SSL problems have gone away.
richardeberhardt
2004-03-27 19:07:01
WebLogic Workshop on Mac OS X
I am running Workshop 8.1 SP2 on a PowerBook. I can set up a simple web service, but run into problems when I try to use a data base control (simple accept of a String, then feed into the Where clause).
I created the control, then generated the jws to test it. Creates and compiles OK. When it runs, I get the following message on the browser page:


Error: Validation class for this value was not provided or was not found.
    36      /**
    37       * @jc:sql statement="select CustName from Customer.FoodCustomer where CustCardNum = {custnum};"
    38       */
*** 39      String GetCustName(int custnum);
    40  }
File: MyDBControl.jcx (in /beaworkshop/user_projects/applications/HelloWorldApplication/FoodCustomerAccess/MyControls)
Suggestion: Verify that the validation class for this type is available.


Anyone have a solution to this?


Thanks,


Rich

jonathanco
2004-04-04 23:45:17
exception generating wrapper class
Hi, i've been trying to get weblogic running on my mac running os x 10.3.3. my app requires a connection pool to oracle 9i for which i downloaded the classes12.jar from oracle. When my app goes to create a connection i'm getting an error that it failed to generate the wrapper class at
weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:154).
the specific excpeption seems to be:

java.lang.NoClassDefFoundError: weblogic/jdbc/wrapper/PoolConnection
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:476)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:181)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:223)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at weblogic.utils.classfile.utils.CodeGenerator.generateClass(CodeGenerator.java:74)
at weblogic.utils.wrapper.WrapperFactory.generateWrapperClass(WrapperFactory.java:369)
at weblogic.utils.wrapper.WrapperFactory.getWrapperClass(WrapperFactory.java:204)
at weblogic.utils.wrapper.WrapperFactory.getWrapperClass(WrapperFactory.java:171)
at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactory.java:146)
at weblogic.jdbc.pool.Driver.allocateConnection(Driver.java:243)
at weblogic.jdbc.pool.Driver.connect(Driver.java:159)
at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:444)
at weblogic.jdbc.jts.Driver.connect(Driver.java:138)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)

my classpath looks like this:

CLASSPATH=/Library/Java/Extensions/classes12.jar:/Library/Java/Home/lib/tools.jar:
/Users/Jonathan/Datacom/courts/CMS_development/P10/bea/weblogic81/server/lib/weblogic_sp.jar:
/Users/Jonathan/Datacom/courts/CMS_development/P10/bea/weblogic81/server/lib/weblogic.jar:
/Users/Jonathan/Datacom/courts/CMS_development/P10/bea/weblogic81/server/lib/ojdbc14.jar:
/Users/Jonathan/Datacom/courts/CMS_development/P10/bea/weblogic81/server/lib/webservices.jar::
/Users/Jonathan/Datacom/courts/CMS_development/P10/bea/user_projects/domains/mydomain/properties:
/Users/Jonathan/Datacom/courts/CMS_development/P10/bea/weblogic81/server/lib/mbeantypes/wlManagement.jar:
/Users/Jonathan/Datacom/courts/CMS_development/P10/lib/mbeantypes/DfcSecurityAuthenticator.jar:
/Users/Jonathan/Datacom/courts/CMS_development/P10/lib/jakarta-regexp-1.2.jar:
/Users/Jonathan/Datacom/courts/CMS_development/P10/lib/xerces.jar:
/Users/Jonathan/Datacom/courts/CMS_development/P10/lib/xalan.jar:
/Users/Jonathan/Datacom/courts/CMS_development/P10/lib/jaxp.jar:
/Users/Jonathan/Datacom/courts/CMS_development/P10/lib/soap.jar:
/Users/Jonathan/Datacom/courts/CMS_development/P10/lib/jakarta-oro-2.0.6.jar:
/Users/Jonathan/Datacom/courts/CMS_development/P10/lib/xml-apis.jar:
/Users/Jonathan/Datacom/courts/CMS_development/P10/source/serverclasses

a search on google has revealed only a few others with this problem ( mainly using mysql ) so i'm sure it must be something i've missed. If anyone has any pointers i'd be greatful.
richardeberhardt
2004-04-10 19:19:24
WebLogic Workshop on Mac OS X
Got some advice from the great people at BEA: I had applied the Software Update for Java 1.4.2, which does not work with Workshop, hence the problems.
Needed to reinstall Panther (no other way to back up a JVM level), verified that I was back at 1.4.1, and reinstalled Workshop. This problem is resolved.
In the course of this, I used the SP2 version of Server, which I found also included the main components of the Workshop product.


Thanks,


Rich

JamesChamberlain
2004-04-21 20:38:41
WebLogic 8.1SP2 Portal on OSX
Has anyone had success running WebLogic Portal on OSX? I keep getting outOfMemory errors, though I bumped up the max to 512 from the default of 256.


Regards,


James

southin
2004-05-06 08:45:20
How to install on Max X 10.3
Hi Everyone:


I have the same problem installing WebLogic as mharper. Is there a solution to this problem?


Thank you,


Southin


inflating: wls4mac/silentC.txt
inflating: wls4mac/silentI.xml
inflating: wls4mac/weblogic.conf
inflating: wls4mac/wlsInstall
Southin-Simphoukhams-Computer:/library/WebLogic southinsimphoukham$ ls
license.zip wls4mac
pj_platform812_generic.jar wls4mac.zip
Southin-Simphoukhams-Computer:/library/WebLogic southinsimphoukham$ cd wls4mac
Southin-Simphoukhams-Computer:/library/WebLogic/wls4mac southinsimphoukham$ ls
default silentC.txt weblogic.conf
lib silentI.xml wlsInstall
Southin-Simphoukhams-Computer:/library/WebLogic/wls4mac southinsimphoukham$ ./wlsInstall
cp: /bea/user_projects/domains/wls/applications: No such file or directory
Southin-Simphoukhams-Computer:/library/WebLogic/wls4mac southinsimphoukham$ ls
default lib silentC.txt silentI.xml weblogic.conf wlsInstall
Southin-Simphoukhams-Computer:/library/WebLogic/wls4mac southinsimphoukham$ ./wlsInstall
cp: /bea/user_projects/domains/wls/applications: No such file or directory
Southin-Simphoukhams-Computer:/library/WebLogic/wls4mac southinsimphoukham$ ./ wlsInstall
-bash: ./: is a directory
Southin-Simphoukhams-Computer:/library/WebLogic/wls4mac southinsimphoukham$ ./wlsInstall
cp: /bea/user_projects/domains/wls/applications: No such file or directory
Southin-Simphoukhams-Computer:/library/WebLogic/wls4mac southinsimphoukham$ ls
default lib silentC.txt silentI.xml weblogic.conf wlsInstall
Southin-Simphoukhams-Computer:/library/WebLogic/wls4mac southinsimphoukham$ cd ..
Southin-Simphoukhams-Computer:/library/WebLogic southinsimphoukham$ ls
license.zip pj_platform812_generic.jar wls4mac wls4mac.zip
Southin-Simphoukhams-Computer:/library/WebLogic southinsimphoukham$ cd wls4mac
Southin-Simphoukhams-Computer:/library/WebLogic/wls4mac southinsimphoukham$ ./wlsInstall
cp: /bea/user_projects/domains/wls/applications: No such file or directory
Southin-Simphoukhams-Computer:/library/WebLogic/wls4mac southinsimphoukham$ ls
default lib silentC.txt silentI.xml weblogic.conf wlsInstall
Southin-Simphoukhams-Computer:/library/WebLogic/wls4mac southinsimphoukham$ ./wlsInstall
cp: /bea/user_projects/domains/wls/applications: No such file or directory
Southin-Simphoukhams-Computer:/library/WebLogic/wls4mac southinsimphoukham$

richardeberhardt
2004-05-06 16:33:49
How to install on Max X 10.3
See the post below by scottellsworth.


Good Luck,


Rich

robbevan
2004-06-03 07:32:04
Upgrading to 8.1 Service Pack 2 a snap
Yes, this worked for me. Downloaded pj_server812_generic.jar and followed the same steps as you (on a server without a previous WebLogic installation). Couldn't have been simpler.
ericholiphant
2004-07-08 15:17:06
10.3.4, JDK 1.4.2, wls 812 and no java browser in the console
Hi,
After a few tweaks the install went swimmingly. Started the server with no problem. After logging into the console with Firefox, I get what I expect in the right pane, but nothing in the left "browser" pane. Did some research and found out that Apple's been a little weird about releasing the info required to get the plug-in working for other browsers. There's an OSS project that attempts to address this but it's only working up to 1.4.1.


In any case, tried Safari. Not only did the applet not load, I am getting the unparsed HTML text in the right pane. Thought it was a bad mime type or something from the console, but WLS seems to be sending the right info. I ran the console from my windows desktop against the mac WLS install and it works fine.


Anyone had similar problems ?

Briggs
2004-08-13 16:24:42
It works in Safari now!
Weblogic SP3 work in Safari, Applet and HTML!


I just updated Weblogic to 8.1sp3 (ran the linux install by unzipping the bin file and going from there) and ran the most recent JDK (1.4.2_5) update from Apple. Sorry to say that I don't know which one fixed it because I installed them both the same day, oops.


Screenshot



Anyway, it works, I am happy!



richardeberhardt
2004-08-23 17:54:33
It works in Safari now!
Are you using WebLogic Workshop? Last I tried, it did not work properly under Java 1.4.2


Thanks,


Rich

nick-o
2004-09-16 17:07:16
Installation not happening
Hey, just wondering if you ever got a response back on this. I'm having the same problem and am feeling stuck. Thanks.
UnoAmigo
2004-10-10 17:04:19
It works in Safari now!
Yes, I have SP3 installed as well and it works.


All Apple updates are installed for Java and Development.


Maybe this is obvious, but it is useful to change the default browser for Workshop to "open." Workshop - Tools - IDE Properties - Browser.


This will let you use your default Mac web browser instead of having to install mozilla or another web browser under X11.

richardeberhardt
2004-10-22 15:32:30
It works in Safari now!
You are right! I installed SP3 and Apple's 1.4.2_part2 update and everything works - including the console panel!


Thanks for the tip,


Rich

marlonkh
2004-10-29 22:17:32
WebLogic Server 8.1 and Oracle 10g JNDI error
Help... after configuring a JDBC Connection pool in Weblogic using the Oracle 10g OCI drivers and a JNDI pointing to the connection pool I get the following errors:


java.lang.NoClassDefFoundError: weblogic/jdbc/wrapper/JTSConnection
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:476)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:181)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:223)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at weblogic.utils.classfile.utils.CodeGenerator.generateClass(CodeGenerator.java:91)
at weblogic.utils.wrapper.WrapperFactory.generateWrapperClass(WrapperFactory.java:402)
at weblogic.utils.wrapper.WrapperFactory.getWrapperClass(WrapperFactory.java:237)
at weblogic.utils.wrapper.WrapperFactory.getWrapperClass(WrapperFactory.java:200)
at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactory.java:163)
at weblogic.jdbc.jts.Driver.newConnection(Driver.java:737)
at weblogic.jdbc.jts.Driver.createLocalConnection(Driver.java:197)
at weblogic.jdbc.jts.Driver.connect(Driver.java:155)

richardeberhardt
2004-11-12 13:48:35
Suggestion
I have been using Workshop on a Mac for almost a year. As the article says, most things do work. And your article and weblog was tremendously helpful.


The one piece I would wish for is that you get the Design view for .jsp's to work on a non-Windows platform. This would please both the Mac and Linux folks immensely.


Always available as a beta tester,


Rich Eberhardt

michaelbergin
2004-12-10 09:19:44
WLS For OS X PLEASE!!!!
I am a professional software developer in the Washington, DC area and mainly work on government contracts. I was recently contacted about a potential job opportunity working on a large government contract developing with bea weblogic portal. I have spent hours getting wls running on my mac and after talking with the project manager found that SEVERAL people currently working on the project are also running Mac OS X. This is just one project, PLEASE SUPPORT OS X!!! :-D
BrianJensen
2004-12-21 03:43:56
Asian characters in console?
Hello


I have gotten wls 812 running on my system, but the console is using asian chars! How this happend I dont know. How do I get it back to using standard english?
I am running OS X 10.3.7


/Brian

BrianJensen
2004-12-21 04:44:27
Asian characters in console?
Ups found it at the console main page - now it is running with english.
Sorry for the post


/Brian

quintism
2004-12-25 12:17:46
workshop debug classpath
Hi all,


I have everything running great on my G4 powerbook. the only thing that I cant seem to resolve is withinside workshop I can not seem to have workshop add anything to the classpath. As a result of this if, say I am in the code of a controller and try to type "import com.bea....." the autocomplete is not picking it up and thus any import is identified as an error..


The strange thing is if I build the app it builds fine but if I attempt to debug the app the build process fails due to unknown imports..


Any pointers would be greatly appreciated!


Quinton

quintism
2004-12-27 06:26:51
workshop debug classpath
Nevermind it was my issue. Somewhere along the lines I had symlinked classes.jar --> tools.jar as we have a project that includes this in the classpath but on OSX tools.jar is now just part of the classes.jar file.


removing this symlink did the trick.

msk1
2005-02-11 20:48:25
weblogic Console doesnt work - help
I installed the wls successfully. localhost:7001/index.html shows up fine - but if i try localhost:7001/console it bombs on
netscape,opera, and IE with the message navappplet not initialized. The right side of the screen is ok. On Safari the left
side is OK (applet runs fine) but the right side XML style sheet
probably doesnt get translated so just appears as txt.


any help is greatly appreciated
msk

mudface
2005-07-07 09:56:28
Running this on Mac OS X Tiger (10.4.1)
Has anyone had any success running the install steps on 10.4.1? There seems to be some updates to the install script to get it to work (ie many commands are currently commented out in the wlsInstall script) Any help is greatly appreciated.
zurc
2005-07-20 21:18:31
WebLogic 8.1 (SP4) on Mac OS (Tiger, 10.4.2)
Hi All,


Tried deploying our application on 8.1 (sp4) and it worked out just fine! Not much of a change, just had to modify the ~/bea/weblogic81/common/bin/commEnv.sh to properly set some libraries (which I think didn't really matter).


WebLogic Console looked fine on Safari... 'didn't try anything though...


We do hope that BEA will soon release an official version for Mac OS X...


cheers,
zurc

VamsiKrishna
2005-07-25 00:17:00
Installation not happening
Hi,


I am trying to install weblogic in my G4 iBook, that has Tiger 10.4.2 and JDK 1.4.2_07.


I downloaded the WebLogic jar file and the wls4mac zip files.
When I execute wlsInstall, nothing happens, the following error message shows up:


cp: /bea/user_projects/domains/wls/applications: No such file or directory


Any help will be greatly appriciated.


Thanks in advance,
Vamsi

nevarrie
2005-10-07 15:51:02
Apache2 mod_wl_20.so
I am running MAMP on my ibook to test out Apache config changes. I am wanting to be able to have a mod_wl_20.so that I can uses on the Mac OS 10.3. Is this avalible somewhere or do I have to Uses apache 1.3 on Mac OS 10.3?
flipmedley
2005-12-15 18:02:50
Running WLS 9.0 on Mac OS X
You can also run WLS 9.0 (and possibly other BEA products, such as AquaLogic Service Bus) by simply firing up the installer from the command line with:


java -Dos.name=unix -jar server900_generic.jar


..which simply causes the OS detection code to use "unix tools" when doing simple checks (such as for disk space requirements).


You can see more at my blog at http://www.neobeans.com/blog/?p=257