.

Tuesday, June 22, 2010

Make a linkage between Web Logic 11g and Apache 2.2


1. weblogic 11g

Oracle WebLogic > User Projects > custom domain (e.g., localhost) > Start Admin Server for Weblogic Server Domain

2. apache version 2.2 Win32 Binary including OpenSSL 0.9.8i (MSI Installer)


3. copy module
C:\Oracle\Middleware\wlserver_10.3\server\plugin\win\32\mod_wl_22.so >
C:\Program Files\Apache Software Foundation\Apache2.2\modules\mod_wl_22.so

4. apache configuration
edit C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf

4.1 add
LoadModule weblogic_module modules/mod_wl_22.so

4.2 add
SetHandler weblogic-handler
PathTrim /weblogic

4.3 add
WebLogicHost localhost
WebLogicPort 7001
#WebLogicCluster 127.0.0.1:7001,127.0.0.2:7001
ConnectTimeoutSecs 20
ConnectRetrySecs 5
MatchExpression *.jsp
MatchExpression *.do
MatchExpression *Servlet


5. application configuration

5.1 make directory
root/WEB-INF/classes
root/WEB-INF/lib
root/WEB-INF/src

5.2 create root/WEB-INF/weblogic.xml
PUBLIC "-//BEA Systems, Inc.//DTD Web Application 7.0//EN"
"http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd" >

5.3 create root/WEB-INF/web.xml
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >


5.4 create root/index.jsp (for test)

6. Deployments

6.1 Connect to http://localhost:7001/console > login ( weblogic for default)
6.2 Deployments > Install 
6.3 Select root > Next > Next ... > Finish
6.4. start weblogic server, start apache service

7. connect to http://localhost/index.jsp

0 comments:

Post a Comment

Facebook Twitter Delicious Digg More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Macys Printable Coupons