WebLogic Type 4 Driver for Oracle is now deprecated
As of WebLogic Server 10gR3, the Type 4 driver for Oracle looks to be deprecated. "Deprecated" means that Oracle|BEA will no longer provide proactive support for the product nor new features. Only security related problem will be fixed and customers are encouraged to migrate to other JDBC drivers(i.e. Oracle Thin Driver).
・The Oracle Driver (Deprecated)
・Using WebLogic Type 4 JDBC Drivers
WebLogic Type 4 driver is an yet another JDBC driver which has been provided by BEA since WLS8.1, and it is actually OEMed by DataDirect. The main focus of the driver is performance and it performs much better than the Oracle's thin driver in many cases. But unfortunately the driver has been immature for long time and sometimes it behaves wrongly. I also strongly suggest using Oracle's Thin driver which is proven to work well.
Customers who wish to continue using the Type 4 driver for some reason can buy an identical driver separately from DataDirect after it's retirement.
Java for Mac OS X 10.5 Update 2
According to TUAW, Apple has released Java for Mac OS X 10.5 Update 2.
It's always suggested to keep your JDK versions up-to-date and I applied the update, confirmed that this package provides JDK1.4.2_18, 1.5.0_16, 1.6.0_07.
Here are the java -version outputs:
java version "1.4.2_18"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_18-b08-314)
Java HotSpot(TM) Client VM (build 1.4.2-90, mixed mode)
$ /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
$ /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
which used to be:
java version "1.4.2_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_16-b05-302)
Java HotSpot(TM) Client VM (build 1.4.2-85, mixed mode)
$ java -version
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237)
Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)
$ /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/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)
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 pre-registered OTN account, not 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:
$ 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 -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.
85c85
< JAVA_VENDOR="Unknown"
---
> JAVA_VENDOR="Sun"
6. run WLS
use startWebLogic.sh to start WebLogic Server
./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)
Installing Apache 2.0.63
I've just updated my Apache 2.0 instance on my server. Keep in mind that it's always a good idea to keep your web server, JVM and JBoss versions up-to-date although I skipped Apache from 2.0.60 to 2.0.62. The version is now 2.0.63.
Here is a note for my future reference.
My configure options are as follows:
$./configure --prefix=${installdir}/apache2 --enable-deflate --enable-proxy --enable-proxy-http --enable-so --enable-shared=yes --enable-rewrite --enable-dav=yes --enable-ssl=static --with-mpm=worker --with-berkeley-db=${installdir}/db4.4 --enable-headersnow let's make it,
$ make . . . sendrecv.c:965:2: error: #error APR has detected sendfile on your system, but nobody has written a sendrecv.c:966:2: error: #error version of it for APR yet. To get past this, either write apr_sendfile sendrecv.c:967:2: error: #error or change APR_HAS_SENDFILE in apr.h to 0.From certain version of Mac OSX(probably from the Leopard release), I'm getting the APR(Apache Portable Runtime) related error. Though I don't understand the exact meaning of the error, I know the solution. It's as simple as just modifying the APR_HAVE_SYS_SENDFILE_H in ./srclib/apr/include/apr.h from 1 to 0.
-#define APR_HAVE_SYS_SENDFILE_H 1 +#define APR_HAVE_SYS_SENDFILE_H 0
After that, make; make install finished without any problem.
$ make clean $ make $ make install