aspose file tools*
The moose likes JBoss/WildFly and the fly likes Enabling session replication does not work jboss 4.3 EAP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Enabling session replication does not work jboss 4.3 EAP" Watch "Enabling session replication does not work jboss 4.3 EAP" New topic
Author

Enabling session replication does not work jboss 4.3 EAP

Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 254

I have done below settings to enable session replication but it doesnot seems to work as its logging me out each time i stop one server to test replication.

Below are the settings apart from Apache loadbalancing settings:

JBoss Server config changes:
changed jboss-eap-4.3/jboss-as/server/all/deploy/jboss-web-cluster.sar/META-INF/jboss-service.xml

default ClusterName to MCLU

changed jboss-eap-4.3/jboss-as/server/all/deploy/jboss-web.deployer/server.xml



changed /opt/jboss-eap-4.3/jboss-as/server/all/deploy/jboss-messaging.sar/messaging-service.xml

Sucker password to a new password

Please tell me if I need to do anything to continue the replication between 2 jboss servers.

Am getting below exception while session is trying to replicate with the other server.



Regards, Ricky
Oracle Weblogic 10g Certified Expert TechPaste.Com
Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 254

Somebody help me!!!

Does any one have any suggestions or answers???



Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10102
    
165

You do realize that using JBoss EAP version gets you support from the JBoss support team, don't you? If this issue is critical then you can always get a quicker reply there.

[My Blog] [JavaRanch Journal]
Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 254

I have also posted in JBoss org forum but still no reply.
We are working on this for one of our client who uses EAP so we dont have a direct contact with support team.

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10102
    
165

The log message says this:



So your session contains a non serializable object and hence is failing during replication. You will have to remove non serializable objects from the sessions for replication to be successful.
Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 254

I did a find /opt/jboss-eap-4.3 -name "*" -exec grep -il 'PropertyResourceBundle' '{}' \;

but only got below three places where it is used and non of the jar files are required for our app to run so I removed all the jarfiles and xml file but still getting the same error.

all\lib\hsqldb-plugin.jar
all\lib\hsqldb.jar
all\deploy\hsqldb-ds.xml

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10102
    
165

It's not an issue about jar files. Some piece in your code is adding some object to the session (being replicated) which holds references to java.util.PropertyResourceBundle. You have to find out what the session contains while it is being replicated. A debugger might be a good idea to look into the contents of the session.

Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 254

Ok,

Is there any flag in JBOSS helping to skip non serializable objects from replication.

As we dont need replication of non serializable objects.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Enabling session replication does not work jboss 4.3 EAP