Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Enabling session replication does not work jboss 4.3 EAP

 
Ramakanta Sahoo
Ranch Hand
Posts: 256
Fedora Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Ramakanta Sahoo
Ranch Hand
Posts: 256
Fedora Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Somebody help me!!!

Does any one have any suggestions or answers???



 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ramakanta Sahoo
Ranch Hand
Posts: 256
Fedora Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The log message says this:

java.io.NotSerializableException: java.util.PropertyResourceBundle


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
Posts: 256
Fedora Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 256
Fedora Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok,

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

As we dont need replication of non serializable objects.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic