[jboss-jira] [JBoss JIRA] (JBFORUMS-300) Unable to perform Session Replication in Jboss 7.0.2

Mahendra Narute (JIRA) jira-events at lists.jboss.org
Thu Aug 22 06:21:26 EDT 2013


Mahendra Narute created JBFORUMS-300:
----------------------------------------

             Summary: Unable to perform Session Replication in Jboss 7.0.2
                 Key: JBFORUMS-300
                 URL: https://issues.jboss.org/browse/JBFORUMS-300
             Project: JBoss Forums
          Issue Type: Feature Request
         Environment: Win - 7, JBoss 7.0.2
            Reporter: Mahendra Narute
            Assignee: Luca Stancapiano


Hi,
I am trying to implement Session Replication using JBoss 7.0.2 server. 
I followed below steps for replication but it’s not working..

1) application web.xml - added <distributable/>
2) Made 2 copy of standalone folder, standalone-node1 & standalone-node2
3) In both nodes standalone-ha.xml added – X=1 & 2 each
	<system-properties>
	      <property name="jvmRoute" value="nodeX"/>
	 </system-properties>
4) Added entry <connector name="ajp" protocol="AJP/1.3" scheme="http" socket-binding="ajp"/>
	<socket-binding name="ajp" port="8x09"/> 
5) Started each node with below command-
	standalone --server-config=standalone-ha.xml -b ip-address-of-node  -Djboss.server.base.dir=../standalone-nodex -Djboss.node.name=n
odex


Changes to be done of Apache 2.2.25

1) httpd.conf 
#########JBOSS##################

LoadModule jk_module modules/mod_jk.so

JkWorkersFile /Apache2.2/conf/modjk/workers.properties
JkLogFile /Apache2.2/conf/modjk/mod_jk.log
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

<VirtualHost *>
  ServerAdmin example at example.com
  ServerAlias www.example.com
  DocumentRoot /Apache2.2/htdocs
  ServerName example.com
  JkMount /* loadbalancer
  JkMount /status/* status
  ErrorLog /Apache2.2/conf/modjk/example-com-error.log
  CustomLog /Apache2.2/conf/modjk/example-com-access.log combined
</VirtualHost>
###############################

2) Create workers.properties file in the location configured as above i.e. JkWorkersFile. Add following
# workers to contact, that's what you have in your httpd.conf
worker.list=loadbalancer,status
#setup nodex
worker.nodex.port=8x09
worker.nodex.host=localhost
worker.nodex.type=ajp13
#setup nodex
worker.nodex.port=8x09
worker.nodex.host=localhost
worker.nodex.type=ajp13
#setup the load-balancer
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=nodex,nodex
worker.loadbalancer.sticky_session=False
# Status worker for managing load balancer
worker.status.type=status


When I am trying to start node it gives exceptions as 


15:28:58,251 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment testWeb.war in 90ms
15:28:58,267 INFO  [org.jboss.as.clustering.infinispan.subsystem] (MSC service thread 1-1) Stopped repl cache from web container
15:28:58,282 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-4) ISPN000080: 
Disconnecting and closing JGroups Channel
15:28:58,329 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] 
(MSC service thread 1-4) ISPN000082: Stopping the RpcDispatcher

15:28:58,329 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) 
{"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => 
"Failed to persist configuration change: org.jboss.as.controller.persistence.ConfigurationPersistenceException: Failed to marsh
al configuration"}}

Am I missing something or Session Replication is not possible in  JBoss 7.0.2?


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jboss-jira mailing list