-
1. Re: Hanging on startup
belaban May 18, 2006 9:19 AM (in response to mraccola)This smells like a class not found problem. Where did you place your JBossCache and JGroups JARs ? Place em as high as possible 'up the stack', e.g. in ./lib if such a thing exists in WAS
-
2. Re: Hanging on startup
mraccola May 18, 2006 1:18 PM (in response to mraccola)I have read the JBossCacheAndWAS Wiki on how to accomplish this and I have a concern with this approach. Moving the JBoss Cache JARs to the %WAS_ROOT%/lib/ext directory requires overriding the WebSphere JMX JAR jmxc.jar in $WAS_ROOT%/lib. I believe this would interfere with WebSphere and the administration console, not to mention resistance from the infrastructure folks.
Is this the only option? What would prevent the cache and/or JGroups channel from shutting down cleanly when the application class loader is shutting down? Am I correct that there is still a cache or channel which was loaded from the old application class loader still being notified of broadcasts from the new application? Why would this situation lock up the application server process?
Alternatively, is there any plan to remove the dependency on JBoss JMX, as the JMX capability is not used outside of JBoss AS? -
3. Re: Hanging on startup
belaban May 18, 2006 2:26 PM (in response to mraccola)Yes, there is, but it is not very high prio. If JMX is indeed the problem, we might bump up the priothough...
-
4. Re: Hanging on startup
mraccola May 18, 2006 10:23 PM (in response to mraccola)Thank you for the quick responses. Yes, in my opinion, removing the JMX dependency would be a big deal for mulitple reasons. I can do a separate post on that so as not to clutter this one.
I still don't understand what could be causing the server to hang. Can you think of anything which could be misconfigured in TreeCache or JGroups which would cause them to not be shut-down cleanly (and without any notification in the logs). As I mentioned I have two TreeCache instances running, both are using "localhost" as the mcast address. They have different cluster names. Other that that I haven't changed many properties in the treecache XML configuration. -
5. Re: Hanging on startup
belaban May 19, 2006 1:59 AM (in response to mraccola)I realized that we will probably remove the JBoss JMX dependency in the 2.0 series, where we do heavy refactoring anyway.
But, looking at your issue, now I don't think this is related to JMX. Are you using the TreeCacheMarshaller (set it to true) ? This is described in the docs, I suggest (a) use the 1.4 beta and enable the TreeCacheMarshaller. -
6. Re: Hanging on startup
mraccola May 23, 2006 2:42 AM (in response to mraccola)I think I found a case where an reference to the cache was being referenced from outside the application (JAAS login module in container). This could have prevented the referenced cache from shutting down, I guess. I have fixed the problem and I can no longer re-create it at any rate. I did not have to switch to TreeCacheMarshaller.
By the way, does Hibernate support the TreeCacheMarshaller with its integration with JBoss TreeCache?
Thanks for your help. -
7. Re: Hanging on startup
manik May 24, 2006 2:58 PM (in response to mraccola)
By the way, does Hibernate support the TreeCacheMarshaller with its integration with JBoss TreeCache?
Yes, it would. Basically Hibernate uses JBC as a black box cache provider.