Tuesday, February 11

Configure Apache with Weblogic Server


Steps to configure Apache plugin 2.2 with Weblogic Server :


- Download the latest plugin from the link below :
Link : http://www.oracle.com/technetwork/middleware/ias/downloads/wls-plugins-096117.html
- Now unzip the file that you have downloaded. ( Eg : WLSPlugin1.1.zip ).
- Now copy all the files present under ” WLSPlugin1.1\Apache_2.2\lib ” to ” /bin ” folder.
( Note : Do not copy ” libapr-1.dll ” ).
Copy ” mod_wl.so ” from  ” WLSPlugin1.1\Apache_2.2\lib ” to ” APACHE_HOME/modules ” folder
- Take a backup of httpd.conf file present in ” APACHE_HOME\conf\ ” folder.
- Edit the httpd.conf file and make the following changes 
# for a single server


LoadModule weblogic_module modules/mod_wl.so

<IfModule mod_weblogic.c> 
WebLogicHost 127.0.0.1 
WebLogicport 7001
MatchExpression *
Debug ON
WLLogFile c:/global_proxy1.1.log
DebugConfigInfo On 
</IfModule&gt


<Location > 
SetHandler weblogic-handler 
</Location >

 Now start the Apache server and weblogic server.
- Access http://localhost:7001/console

****************************************************************************** Configure Apache with Weblogic Server

Step 1) Make sure the Apache server runs on port 8080.
(This is because sometimes IIS, or some antivirus softwarew runs on that port).
This can be done by modifying the httpd.conf present at,
\Apache2\conf\httpd.conf

Modify the Listen port to 8080

Step 2) Copy the mod_wl_20.so from \wlserver_10.3\server\plugin\win\32 to
\Apache2\modules
Step 3) Add these lines in the httpd.conf file
 LoadModule weblogic_module modules/mod_wl_20.so

<Location />
SetHandler weblogic-handler
</Location>

<IfModule mod_weblogic.c>
      WebLogicCluster localhost:7003 ,localhost:7005
     Debug ON
     WLLogFile c:/temp/wlproxy.log
     WLTempDir c:/temp
</IfModule>


Step 4) Restart Apache and access the application deployed on the Cluster using
http://localhost:8080/YourApp

This will forward the request to the Weblogic Cluster
You can check the headers sent and received to WLS in wlproxy.log file.


  • Ananth Srinivas -> we need to enbale Proxy Plugin from the Weblogic console
    -> Copy the Module Files from Weblogic to Apache Modules Folder structure
    -> Edit httpd.conf file with below Information (Syntax is forExample)
    <IfModule mod_weblogic.c>
    WebLogicCluster 127.91.84.72:7001,127.0.0.1:7001,124.87.96.34:7001
    MatchExpression *.*
    Debug ON
    DebugConfigInfo ON
    KeepAliveEnabled ON
    WLLogFile":\home\apache2\logs\proxy.log"
    </IfModule
    >

  • Ananth Srinivas Log in to the Oracle WebLogic Server administration console.
    In the Domain Structure pane, expand the Environment node.
    If the server instances to which you want to proxy requests from Apache Server are in a cluster, select Clusters.
    Otherwise, select Servers.
    Select the server or cluster to which you want to proxy requests from Apache Server.
    The Configuration: General tab is displayed.
    Scroll down to the Advanced section, expand it, and select the WebLogic Plug-In Enabled check box.
    Click Save.
    Restart JVM to effect Changes

    copy mod_wl_20.so from WL_HOME\wlserver_10.0\server\plugin\win\32 to /opt/app/apache/conf/modules (These Path are from References , please replace them with ur environment Path)
  • Kiran Kumar Ravula ++ Adding 
    Virtual host configuration

  • Kishore Setti Adding some info in httpd.conf,

  •  <LoadModuleweblogic_module modules/mod_wl_20.so >

  • <Location />
    SetHandler weblogic-handler
    </Location<

Deployment Staging Modes


Deployment Staging Mode
Behavior
stage
The Administration Server first copies the deployment unit source files to the staging directories of target servers specified by the Staging Directory Name attribute.
The target servers then deploy using their local copy of the deployment files.
nostage
The Administration Server does not copy deployment unit files. Instead, all servers deploy using the same physical copy of the deployment files, which must be directly accessible by the Administration Server and target servers.
With nostage deployments of exploded archive directories, WebLogic Server automatically detects changes to a deployment's JSPs or Servlets and refreshes the deployment. (This behavior can be disabled if necessary.)
external_stage
The Administration Server does not copy deployment files. Instead, the Administrator must ensure that deployment files are distributed to the correct staging directory location before deployment (for example, by manually copying files prior to deployment).
With external_stage deployments, the Administration Server requires a copy of the deployment files for validation purposes. Copies of the deployment files that reside in target servers' staging directories are not validated before deployment.