aspose file tools*
The moose likes JBoss/WildFly and the fly likes JBoss 7.0.2 Session Replication Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss 7.0.2 Session Replication Issue" Watch "JBoss 7.0.2 Session Replication Issue" New topic
Author

JBoss 7.0.2 Session Replication Issue

Mahendra Narute
Greenhorn

Joined: Aug 22, 2013
Posts: 1
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@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
1.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
2.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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss 7.0.2 Session Replication Issue