Exception "Caught exception stopping JBossCacheSSOClusterManager" at start of 3rd node in cluster

Solution Unverified - Updated -

Issue

  • I keep getting the following exception at JBoss 5.1.2 startup, as soon as I start a 3rd instance in a SSO cluster:
08:35:37,695 INFO  [org.apache.catalina.core.StandardEngine]::start(432) - Starting Servlet Engine: JBoss Web/2.1.12.GA-patch-01
08:35:39,218 INFO  [org.jboss.cache.jmx.PlatformMBeanServerRegistration]::registerToPlatformMBeanServer(71) - JBossCache MBeans were successfully registered to the platform mbean server.
08:35:41,027 ERROR [org.apache.catalina.startup.Catalina]::start(577) - Catalina.start: 
LifecycleException:  Caught exception stopping JBossCacheSSOClusterManager:  org.jboss.cache.CacheException: java.lang.reflect.InvocationTargetException
    at org.jboss.web.tomcat.service.sso.ClusteredSingleSignOn.start(ClusteredSingleSignOn.java:435)
    at org.apache.catalina.core.StandardPipeline.start(StandardPipeline.java:235)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1056)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:523)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:736)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:575)
    at org.jboss.web.tomcat.service.deployers.TomcatService.startService(TomcatServ
        .. .. ..
    at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)
    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)
    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
    at org.jboss.Main.boot(Main.java:221)
    at org.jboss.Main$1.run(Main.java:556)
    at java.lang.Thread.run(Thread.java:736)
08:35:41,081 INFO  [org.apache.catalina.startup.Catalina]::start(583) - Server startup in 3584 ms
08:35:41,706 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment]::performDeployInternal(164) - deploy, ctxPath=/web-console
08:35:50,525 INFO  [org.jboss.resource.deployers.RARDeployment]::startService(146) - Required license terms exist, view vfszip:/opt/jboss/JBoss-5.1.2/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
.. .. ..
2012-04-10 08:37:11,549 ERROR [org.jboss.web.tomcat.service.sso.jbc.JBossCacheSSOClusterManager]::lookup(410) - caught exception looking up SSOCredentials for SSO id B9968E6AD89CE2AE7D8536949215BC48
org.jboss.cache.invocation.CacheNotReadyException: Cache not in a valid STARTED state!  Cache state is FAILED
    at org.jboss.cache.invocation.CacheInvocationDelegate.cacheStatusCheck(CacheInvocationDelegate.java:695)
    at org.jboss.cache.invocation.CacheInvocationDelegate.get(CacheInvocationDelegate.java:442)
    at org.jboss.ha.cachemanager.CacheManagerManagedCache.get(CacheManagerManagedCache.java:193)
    at org.jboss.web.tomcat.service.sso.jbc.JBossCacheSSOClusterManager.getFromTreeCache(JBossCacheSSOClusterManager.java:873)
    at org.jboss.web.tomcat.service.sso.jbc.JBossCacheSSOClusterManager.lookup(JBossCacheSSOClusterManager.java:406)
    at org.jboss.web.tomcat.service.sso.ClusteredSingleSignOn.getSingleSignOnEntry(ClusteredSingleSignOn.java:903)
    at org.jboss.web.tomcat.service.sso.ClusteredSingleSignOn.invoke(ClusteredSingleSignOn.java:680)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.internalProcess(ActiveRequestResponseCacheValve.java:74)
    at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:47)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
    at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:436)
    at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:385)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
    at java.lang.Thread.run(Thread.java:736)
  • The exception hit initializing the ClusteredSingleSignOn valve causes initialization of other valves to be skipped. This then causes later continuous exceptions on requests with other vavles that are not properly initialized such as the CachedConnectionValve:
2012-04-10 08:37:11,606 ERROR [org.apache.catalina.connector.CoyoteAdapter]::service(353) - An exception or error occurred in the container during the request processing
java.lang.IllegalStateException: Uncomment the dependency on CachedConnectionManager in META-INF/jboss-service.xml of jbossweb-tomcatxxx.sar
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:151)
    at org.jboss.web.tomcat.service.sso.ClusteredSingleSignOn.invoke(ClusteredSingleSignOn.java:711)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.internalProcess(ActiveRequestResponseCacheValve.java:74)
    at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:47)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
    at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:436)
    at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:385)

Environment

JBoss Enterprise Application Platform (EAP) 5.1.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In