-
1. Re: Acessing the TreeCache MBeans in JBossAS when the TreeC
manik May 30, 2008 4:48 AM (in response to gjwilk01)That doesn't say much - any more detail, debug messages, etc? :-)
-
2. Re: Acessing the TreeCache MBeans in JBossAS when the TreeC
gjwilk01 May 30, 2008 8:00 AM (in response to gjwilk01)Yes, sure. Here is some more :)
Could not start TreeCache!unable to setup the protocol stackorg.jgroups.ChannelException: unable to setup the protocol stack
at com.cidc.commonservices.cache.TreeCacheSingleton.init(TreeCacheSingleton.java:45)
at com.cidc.commonservices.cache.CacheControlListener.contextInitialized(CacheControlListener.java:24)
... 136 more
Caused by: org.jgroups.ChannelException: unable to setup the protocol stack
at org.jgroups.JChannel.init(JChannel.java:1273)
at org.jgroups.JChannel.(JChannel.java:265)
at org.jgroups.JChannel.(JChannel.java:248)
at org.jboss.cache.TreeCache._createService(TreeCache.java:1474)
at org.jboss.cache.TreeCache.startService(TreeCache.java:1529)
at com.cidc.commonservices.cache.TreeCacheSingleton.init(TreeCacheSingleton.java:41)
... 137 more
Caused by: java.lang.ClassCastException: org.jgroups.protocols.UDP
at org.jgroups.stack.Configurator$ProtocolConfiguration.createLayer(Configurator.java:593)
at org.jgroups.stack.Configurator$ProtocolConfiguration.access$000(Configurator.java:502)
at org.jgroups.stack.Configurator.createProtocols(Configurator.java:283)
at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:56)
at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:180)
at org.jgroups.JChannel.init(JChannel.java:1270)
Please, let me know if you'd like to take a look at my config file.
Thanks in advance,
~george -
3. Re: Acessing the TreeCache MBeans in JBossAS when the TreeC
manik May 30, 2008 9:27 AM (in response to gjwilk01)You say this is within your WAR file? Where is this picking up the JBoss Cache jars (and dependent jars) from?
-
4. Re: Acessing the TreeCache MBeans in JBossAS when the TreeC
gjwilk01 May 30, 2008 10:05 AM (in response to gjwilk01)That's got to be it. I don't have all of the dependent jars included in my WAR file. When I run the Cache as a globally deployed MBean it must have access to all the files in /server/all/lib directory, but when I run it from my WAR file it is missing the dependent jar files.
Is there a way to make these missing dependent jar files available to my application without including them in my WAR file? -
5. Re: Acessing the TreeCache MBeans in JBossAS when the TreeC
brian.stansberry Jun 2, 2008 3:41 PM (in response to gjwilk01)I'd say it's more likely that you have jgroups.jar in your war. A ClassCastException in that location means there is more than one version of the org.jgroups.protocols.UDP class on the classpath.