Hi Anil
Thanks for providing the configuration settings... i have made all the
changes but no success..
could you please review my configuration files.. here are they
node 1 (ofbiz instance1)
<container name="catalina-container"
class="org.ofbiz.catalina.container.CatalinaContainer">
<!-- static configuration for tomcat -->
<property name="delegator-name" value="default"/>
<property name="use-naming" value="false"/>
<property name="debug" value="0"/>
<property name="catalina-runtime-home" value="runtime/catalina"/>
<property name="apps-context-reloadable" value="false"/>
<property name="apps-cross-context" value="true"/>
<property name="apps-distributable" value="true"/>
<!-- one or more tomcat engines (servers); map to this + host -->
<property name="default-server" value="engine">
<property name="default-host" value="0.0.0.0"/>
<property name="jvm-route" value="node1"/>
<property name="access-log-pattern">
<property-value>%h %l %u %t "%r" %s %b "%{Referer}i"
"%{User-Agent}i"</property-value>
</property>
<property name="access-log-resolve" value="true"/>
<property name="access-log-rotate" value="true"/>
<property name="access-log-prefix" value="access_log."/>
<property name="access-log-dir" value="runtime/logs"/>
<property name="enable-request-dump" value="false"/>
<!-- uncomment for cluster support -->
<property name="default-server-cluster" value="cluster">
<property name="rep-valve-filter">
<property-value>.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;</property-value>
</property>
<property name="manager-class"
value="org.apache.catalina.ha.session.BackupManager"/>
<property name="debug" value="5"/>
<property name="replication-mode" value="pooled"/>
<property name="tcp-listen-host" value="auto"/>
<property name="tcp-listen-port" value="4001"/>
<property name="tcp-sector-timeout" value="100"/>
<property name="tcp-thread-count" value="6"/>
<property name="mcast-bind-addr" value="172.17.197.56"/>
<property name="mcast-addr" value="228.0.0.4"/>
<property name="mcast-port" value="45564"/>
<property name="mcast-freq" value="500"/>
<property name="mcast-drop-time" value="3000"/>
</property>
node 2 (ofbiz instance 2)
<container name="catalina-container"
class="org.ofbiz.catalina.container.CatalinaContainer">
<!-- static configuration for tomcat -->
<property name="delegator-name" value="default"/>
<property name="use-naming" value="false"/>
<property name="debug" value="0"/>
<property name="catalina-runtime-home" value="runtime/catalina"/>
<property name="apps-context-reloadable" value="false"/>
<property name="apps-cross-context" value="true"/>
<property name="apps-distributable" value="true"/>
<!-- one or more tomcat engines (servers); map to this + host -->
<property name="default-server" value="engine">
<property name="default-host" value="0.0.0.0"/>
<property name="jvm-route" value="node2"/>
<property name="access-log-pattern">
<property-value>%h %l %u %t "%r" %s %b "%{Referer}i"
"%{User-Agent}i"</property-value>
</property>
<property name="access-log-resolve" value="true"/>
<property name="access-log-rotate" value="true"/>
<property name="access-log-prefix" value="access_log."/>
<property name="access-log-dir" value="runtime/logs"/>
<property name="enable-request-dump" value="false"/>
<!-- uncomment for cluster support -->
<property name="default-server-cluster" value="cluster">
<property name="rep-valve-filter">
<property-value>.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;</property-value>
</property>
<property name="manager-class"
value="org.apache.catalina.ha.session.BackupManager"/>
<property name="debug" value="5"/>
<property name="replication-mode" value="pooled"/>
<property name="tcp-listen-host" value="auto"/>
<property name="tcp-listen-port" value="4002"/>
<property name="tcp-sector-timeout" value="100"/>
<property name="tcp-thread-count" value="6"/>
<property name="mcast-bind-addr" value="172.17.197.56"/>
<property name="mcast-addr" value="228.0.0.4"/>
<property name="mcast-port" value="45564"/>
<property name="mcast-freq" value="500"/>
<property name="mcast-drop-time" value="3000"/>
</property>
My doubt is ...
do i need to change anything in
framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java
and do i need to build it using ant clean and ant script again after making
changes ??
Alo the change you mentioned for
<property name="replication-mode"
value="org.apache.catalina.tribes.transport.bio.PooledMultiSender"/>
is throwing error as shown below
[LocalDispatcher] : Created Dispatcher for: entity-default
java.lang.IllegalArgumentException: Replication mode has to be
'synchronous', 'pooled', 'asynchronous', 'fastasyncqueue
at
org.apache.catalina.cluster.tcp.ReplicationTransmitter.setReplicationMode(ReplicationTransmitter.java:209)
at
org.ofbiz.catalina.container.CatalinaContainer.createCluster(CatalinaContainer.java:411)
at
org.ofbiz.catalina.container.CatalinaContainer.createEngine(CatalinaContainer.java:287)
at
org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:195)
at
org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
at
org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
at org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
at org.ofbiz.base.start.Start.init(Start.java:87)
at org.ofbiz.base.start.Start.main(Start.java:403)
Please review the above ....
thanks in advance
bye
vignesh sabapathi
Anil Soni wrote:
>
> Vignesh,
>
> Here is my configuration setting (ofbiz-containers.xml) :
>
> <container name="catalina-container"
> class="org.ofbiz.catalina.container.CatalinaContainer">
> <!-- static configuration for tomcat -->
> <property name="delegator-name" value="default"/>
> <property name="use-naming" value="false"/>
> <property name="debug" value="0"/>
> <property name="catalina-runtime-home" value="runtime/catalina"/>
> <property name="apps-context-reloadable" value="false"/>
> <property name="apps-cross-context" value="true"/>
> <property name="apps-distributable" value="true"/>
> <!-- one or more tomcat engines (servers); map to this + host -->
> <property name="default-server" value="engine">
> <property name="default-host" value="0.0.0.0"/>
> <property name="jvm-route" value="worker2"/>
> <property name="access-log-pattern">
> <property-value>%h %l %u %t "%r" %s %b "%{Referer}i"
> "%{User-Agent}i"</property-value>
> </property>
> <property name="access-log-resolve" value="true"/>
> <property name="access-log-rotate" value="true"/>
> <property name="access-log-prefix" value="access_log."/>
> <property name="access-log-dir" value="runtime/logs"/>
> <property name="enable-request-dump" value="false"/>
> <!-- uncomment for cluster support-->
> <property name="default-server-cluster" value="cluster">
> <property name="rep-valve-filter">
>
> <property-value>.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;</property-value>
> </property>
> <property name="manager-class"
> value="org.apache.catalina.ha.session.BackupManager"/>
> <property name="debug" value="5"/>
> <property name="replication-mode"
> value="org.apache.catalina.tribes.transport.bio.PooledMultiSender"/>
> <property name="tcp-listen-host" value="auto"/>
> <property name="tcp-listen-port" value="4001"/>
> <property name="tcp-sector-timeout" value="100"/>
> <property name="tcp-thread-count" value="6"/>
> <property name="mcast-bind-addr" value="172.17.88.107"/>
> <property name="mcast-addr" value="228.0.0.4"/>
> <property name="mcast-port" value="45564"/>
> <property name="mcast-freq" value="500"/>
> <property name="mcast-drop-time" value="3000"/>
> </property>
>
> Try this.
>
>
>
> Anil Soni
> [email protected]
> Mobile : 9930302283
>
> ______________________________________________________________________
>
--
View this message in context:
http://n4.nabble.com/Session-replication-not-working-in-OFBiz-embedded-tomcat-clustering-tp622565p623931.html
Sent from the OFBiz - User mailing list archive at Nabble.com.