<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3086" name=GENERATOR></HEAD>
<BODY
style="WORD-WRAP: break-word; webkit-nbsp-mode: space; webkit-line-break: after-white-space">
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=150160810-13112007>Hi Manik,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=150160810-13112007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=150160810-13112007>Thanks for your reply. </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=150160810-13112007>Yes, the tomcat clustering is enabled and works fine.
Does tomcat also use JGroups ? </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=150160810-13112007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=150160810-13112007>The tomcat's clustering is on say 228.8.8.8 and port
4554. What I have done is, configured replSync-service.xml that comes with
JBossCache and pointed the UDP/mcastaddr to the same addr and port as in
Tomcat. Is there something wrong here ? What I have udnerstood from the
documetns of JBossCAche is that, it leverages on JGroups which is capable of
discovering an existing multicast group, in that case is'nt this
configuration enough ? If the answer is no then what is the role of
replSync-service.xml ? Is there a separate xml that is to be configured for
automatic discovery ? Or the mping.xml found in jgroups.jar has to be modified
?</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=150160810-13112007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=150160810-13112007>Have not found any information on configuring for
automatic discovery in the JBoss user guide. </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=150160810-13112007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=150160810-13112007></SPAN></FONT><FONT face=Arial color=#008000
size=2><FONT face=Arial color=#008000 size=2>Best Regards,</FONT></DIV>
<DIV align=left>
<DIV align=left><FONT face=Arial color=#008000 size=2><SPAN
class=854514812-05112007>Jigyaasa_Jbosscache</SPAN></FONT></DIV></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV><FONT face=Arial
color=#008000 size=2></FONT><FONT face=Arial color=#008000 size=2></FONT><FONT
face=Arial color=#008000 size=2></FONT><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT size=2><FONT face=Tahoma><B>From:</B> Manik Surtani
[mailto:manik@jboss.org] <BR><B>Sent:</B> Monday, November 12, 2007 7:03
PM<BR><B>To:</B> Mamta, Jain<BR><B>Cc:</B>
jbosscache-users@lists.jboss.org<BR><B>Subject:</B> Re: [jbosscache-users] Issue
with JBC on Tomcat 5.5</FONT><SPAN class=150160810-13112007><FONT face=Arial
color=#0000ff> </FONT></SPAN></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT><FONT face=Arial color=#0000ff
size=2></FONT><FONT face=Arial color=#0000ff size=2></FONT><BR> </DIV>
<DIV>Have you enabled Tomcat clustering as well? By the look of that stack
trace Tomcat clustering is enabled, and it may use a different version of
JGroups. If you want to use TOmcat clustering as well, make sure your
multicast address and ports don't overlap.</DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT><BR
class=webkit-block-placeholder></DIV>
<DIV>
<DIV style="MARGIN: 0px; FONT: 12px Helvetica"><A
href="http://wiki.jboss.org/wiki/Wiki.jsp?page=PromiscuousTraffic">http://wiki.jboss.org/wiki/Wiki.jsp?page=PromiscuousTraffic</A></DIV>
<DIV style="MARGIN: 0px; FONT: 12px Helvetica"><FONT face=Arial color=#0000ff
size=2></FONT><BR class=webkit-block-placeholder></DIV>
<DIV style="MARGIN: 0px; FONT: 12px Helvetica"><FONT face=Arial color=#0000ff
size=2></FONT><BR class=webkit-block-placeholder></DIV>
<DIV>
<DIV>On 12 Nov 2007, at 05:17, Mamta, Jain wrote:</DIV><BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2><SPAN class=854514812-05112007>Hi
All,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=854514812-05112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=854514812-05112007>We are having
trouble using JBC Habanero version 2.0.0.0 GA for enabling Distributed
Caching. The error encountered as appearing in the
log is :</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=854514812-05112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=854514812-05112007>Nov 2, 2007
6:00:07 AM org.jgroups.protocols.TP$IncomingPacket run<BR>WARNING: packet from
a.b.c.d:45564 has different version (0.0.0) from ours (2.5.0). Packet is
discarded</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=854514812-05112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=854514812-05112007>Environment
:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=854514812-05112007>Tomcat 5.5.20,
Multicast</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=854514812-05112007>Starting Catalina
with the following option to avoid the "Problem creating sockets"
:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=854514812-05112007>
-Djava.net.preferIPv4Stack=true</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=854514812-05112007></SPAN></FONT><FONT face=Arial size=2><SPAN
class=854514812-05112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=854514812-05112007>What I am trying
to do is, use JBC for distributing cache over the Tomcats cluster established
with multicasting. The steps followed were :</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=854514812-05112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=854514812-05112007>
1. modified ip address & port for the UDP/mcastaddr and port in
replSync-service.xml</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=854514812-05112007></SPAN></FONT><FONT face=Arial size=2><SPAN
class=854514812-05112007> 2. commented off transaction
manager tag in the xml, as we dont have the requirement for Transactional
Caching</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=854514812-05112007>
3. created a client that would enable/initialize the JBC caching
:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=854514812-05112007></SPAN></FONT> </DIV>
<DIV><FONT size=+0><SPAN class=854514812-05112007><FONT face=Arial
size=2> CacheFactory factory =
DefaultCacheFactory.<I>getInstance</I>();</FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=854514812-05112007><FONT face=Arial><FONT
size=2><FONT color=#0000c0><SPAN
class=854514812-05112007>
</SPAN>cache</FONT> = factory.createCache(<url of the
replSync-service.xml>);</FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=854514812-05112007><FONT face=Arial><FONT
size=2></FONT></FONT></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=854514812-05112007>Whats happening is
:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=854514812-05112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=854514812-05112007>
1. JGroups seems to be doing whats required as I see the following in the log
:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=854514812-05112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=854514812-05112007> INFO:
JGroups version: 2.5.0</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=854514812-05112007>
-------------------------------------------------------<BR>
GMS: address is a.b.c.d:32838</SPAN></FONT></DIV><FONT size=+0><SPAN
class=854514812-05112007>
<DIV><FONT face=Arial size=2></FONT><BR><FONT face=Arial
size=2> 2. And further the following is logged
:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></SPAN></FONT>
<DIV><FONT size=+0><FONT face=Arial><FONT size=2><SPAN
class=854514812-05112007> </SPAN>INFO: viewAccepted():
[<SPAN class=854514812-05112007>a.b.c.d</SPAN>:32838|0] [<SPAN
class=854514812-05112007>a.b.c.d</SPAN>:32838]<BR><SPAN
class=854514812-05112007> </SPAN>Nov 2, 2007 6:00:06 AM
org.jboss.cache.CacheImpl internalStart<BR><SPAN
class=854514812-05112007> </SPAN>INFO: CacheImpl local
address is <SPAN class=854514812-05112007>a.b.c.d</SPAN>:32838<BR><SPAN
class=854514812-05112007> </SPAN>Nov 2, 2007 6:00:06 AM
org.jboss.cache.CacheImpl internalStart<BR><SPAN
class=854514812-05112007> </SPAN>INFO: JBoss Cache version:
JBossCache 'Habanero' 2.0.0.GA[ $Id: Version.java,v 1.35 2007/08/01 16:52:13
msurtani Exp $]<BR><SPAN class=854514812-05112007>
</SPAN>Nov 2, 2007 6:00:07 AM
org.apache.catalina.cluster.mcast.McastServiceImpl$ReceiverThread run<BR><SPAN
class=854514812-05112007> </SPAN>WARNING: Error receiving
mcast package. Sleeping 500ms<BR><SPAN
class=854514812-05112007>
</SPAN>java.lang.ArrayIndexOutOfBoundsException<BR><SPAN
class=854514812-05112007> </SPAN> at
java.lang.System.arraycopy(Native Method)<BR><SPAN
class=854514812-05112007> </SPAN> at
org.apache.catalina.cluster.mcast.McastMember.getMember(McastMember.java:174)<BR><SPAN
class=854514812-05112007> </SPAN> at
org.apache.catalina.cluster.mcast.McastServiceImpl.receive(McastServiceImpl.java:210)<BR><SPAN
class=854514812-05112007> </SPAN> at
org.apache.catalina.cluster.mcast.McastServiceImpl$ReceiverThread.run(McastServiceImpl.java:254)<BR><SPAN
class=854514812-05112007> </SPAN>Nov 2, 2007 6:00:07 AM
org.jgroups.protocols.TP$IncomingPacket run<BR><SPAN
class=854514812-05112007> </SPAN>WARNING: packet from <SPAN
class=854514812-05112007>a.b.c.d</SPAN>:45564 has different version (0.0.0)
from ours (2.5.0). Packet is discarded<BR></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=854514812-05112007>
3. Is the observed error ignorable ?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=854514812-05112007>
4. I have not started the other node in the cluster as there are hundreds of
lines appearing in the log with Packet discarded message.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=854514812-05112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=854514812-05112007>Have I done
enough, or missing something obvious as the documents do direct us to do
just the above.</SPAN></FONT></DIV><FONT face=Arial size=2>
<DIV><BR></DIV></FONT>
<DIV><FONT face=Arial color=#008000 size=2>Best Regards,</FONT></DIV>
<DIV align=left><FONT face=Arial color=#008000 size=2><SPAN
class=854514812-05112007>Jigyaasa_Jbosscache</SPAN></FONT></DIV></FONT></DIV><PRE>This email is confidential. If you are not the addressee tell the sender immediately and destroy this email
without using, sending or storing it. Emails are not secure and may suffer errors, viruses, delay,
interception and amendment. Standard Chartered PLC and subsidiaries ("SCGroup") do not accept liability for
damage caused by this email and may monitor email traffic.
</PRE></DIV>_______________________________________________<BR>jbosscache-users
mailing list<BR><A
href="mailto:jbosscache-users@lists.jboss.org">jbosscache-users@lists.jboss.org</A><BR>https://lists.jboss.org/mailman/listinfo/jbosscache-users<BR></BLOCKQUOTE></DIV><BR>
<DIV apple-content-edited="true"><SPAN class=Apple-style-span
style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0">
<DIV
style="WORD-WRAP: break-word; webkit-nbsp-mode: space; webkit-line-break: after-white-space"><SPAN
class=Apple-style-span
style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px">
<DIV
style="WORD-WRAP: break-word; webkit-nbsp-mode: space; webkit-line-break: after-white-space"><SPAN
class=Apple-style-span
style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px">
<DIV
style="WORD-WRAP: break-word; webkit-nbsp-mode: space; webkit-line-break: after-white-space">
<DIV>--</DIV>
<DIV>Manik Surtani</DIV>
<DIV>Lead, JBoss Cache</DIV>
<DIV><A href="mailto:manik@jboss.org">manik@jboss.org</A></DIV>
<DIV><BR></DIV>
<DIV><BR></DIV></DIV></SPAN><BR class=Apple-interchange-newline></DIV></SPAN><BR
class=Apple-interchange-newline></DIV></SPAN><BR
class=Apple-interchange-newline></DIV><BR></DIV><PRE>
This email is confidential. If you are not the addressee tell the sender immediately and destroy this email
without using, sending or storing it. Emails are not secure and may suffer errors, viruses, delay,
interception and amendment. Standard Chartered PLC and subsidiaries ("SCGroup") do not accept liability for
damage caused by this email and may monitor email traffic.
</PRE>
</BODY></HTML>