Tuesday, January 3, 2012

Running ADF in weblogic cluster

I am trying to run my ADF app in a cluster and my login page redirects back on itself endlessly.
Note this has been resolved - we restarted the entire weblogic server and the problem dissapeared. (I think something went wrong in the deployment) the one other change I made was to change the inner xml of session-descriptor in weblogic.xml FROM: <sharing-enabled>true</sharing-enabled> TO:
<persistent-store-type>REPLICATED_IF_CLUSTERED</persistent-store-type> this should not make a difference but I though I would mention it.

Here are my notes to self as I moved through the process.

Application
  adf-config.xml
  <adf-controller-config xmlns="http://xmlns.oracle.com/adf/controller/config">
    <adf-scope-ha-support>true</adf-scope-ha-support>
  </adf-controller-config>
 
  Web.xml
  <context-param>
    <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
    <param-value>false</param-value>
  </context-param>

Weblogic Setup (I am testing locally on windows for now)
  • C:\Dev\Middleware\wlserver_10.3\server\bin\startNodeManager.cmd - start node manager before you can start managed servers
  • Add to Domain -- Enviroment -- servers -- your managed servers -- configuration tab -- server start tab -- arguments text area : -Xms1536m -Xmx1536m -Duser.timezone=+02:00 -XX:MaxPermSize=512m
  • Make sure you have all the properties and classpaths set (you can copy and paste them from startup)

2 comments:

  1. Hi,

    > -Xms1536m -Xmx1536m

    you have a solid machine ;) How many of these Managed servers are you able to run locally?
    Do you use an LB in front? ohs_mod_wl? LB-Servlet?

    Andreas.

    ReplyDelete
  2. Hi Andreas, yhea we believe that developers should always have the best machines :)

    Anyway we intend to use ohs_mod_wl or apache if that fails, we have not quite got there yet but will soon.

    ReplyDelete