cas clustering with jbossCacheTicketRegistry

David Pham dpham6 at gmail.com
Wed Sep 12 23:59:16 EDT 2007


Thanks for the quick response Scott, you were right, the errors were caused
by a missing jar and not related to the CLASSPATH.

So now that my cluster of 2 CASes have loaded and assuming I have session
replication + cas clustering implemented
properly I did a quick test that does not seem to work.  Perhaps my
understanding of how cas clustering is wrong because the cluster does not
appear to be sharing the ticket registry.

Test scenario:
      Load up CAS1
      From client browser, access the casified application and get
redirected to CAS1 login screen
      Authenticate and receive TGC from CAS1

      Load up CAS2
      Using the same browser window, access the casified app again
      the load balancer redirects to CAS2 login screen


I should not have to reauthenticate with CAS2 if both CAS1 and 2 shared
session data correct?  However
this is not the case as the client browser is not automatically redirected
to the casified app.

Regards, David


On 9/12/07, Scott Battaglia <scott.battaglia at gmail.com> wrote:
>
> Its probably not a CLASSPATH variable issue as much as missing a required
> jar (in this case the JBossCache jar).  If you are using the CAS 3.1distribution, you should be able to declare the cas-server-integration-jboss
> (or whatever its called) as a dependency of the webapp project and when you
> package the webapp project it should include all of the necessary jars.
>
> -Scott
>
> On 9/12/07, David Pham <dpham6 at gmail.com> wrote:
>
> > Hi All,
> > Can anyone tell me what the CLASSPATH should be set to in order to
> > implement jboss?  Unfortunately I am getting NoClassDefFoundError exceptions
> > despite following the instructions from this guide
> > http://www.ja-sig.org/wiki/display/CASUM/Clustering+CAS.
> >
> > Here is an error example,
> >
> > The Spring ContextLoaderListener we wrap threw on contextInitialized.
> > But for our having caught this error, the web application context would
> > not have initialized.>
> > org.springframework.beans.factory.BeanCreationException: Error creating
> > bean with name 'centralAuthenticationService' defined in ServletContext
> > resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean
> > 'ticketRegistry' while
> > setting bean property 'ticketRegistry'; nested exception is
> > org.springframework.beans.factory.BeanCreationException: Error creating
> > bean with name 'ticketRegistry' defined in ServletContext resource
> > [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested
> > exception is java.lang.NoClassDefFoundError:
> > org/jboss/cache/CacheException
> > Caused by:
> > org.springframework.beans.factory.BeanCreationException: Error creating
> > bean with name 'ticketRegistry' defined in ServletContext resource
> > [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested
> > exception is java.lang.NoClassDefFoundError:
> > org/jboss/cache/CacheException
> > Caused by:
> > java.lang.NoClassDefFoundError: org/jboss/cache/CacheException
> >         at java.lang.Class.getDeclaredConstructors0(Native Method)
> >         at java.lang.Class.privateGetDeclaredConstructors(Class.java
> > :2357)
> >         at java.lang.Class.getConstructor0(Class.java:2671)
> >         at java.lang.Class.getDeclaredConstructor(Class.java:1953)
> >         at org.springframework.beans.BeanUtils.instantiateClass (
> > BeanUtils.java:60)
> >         at
> > org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate
> > (SimpleInstantiationStrategy.java:45)
> >
> >
> > Regards, David
> >
> > _______________________________________________
> > Yale CAS mailing list
> > cas at tp.its.yale.edu
> > http://tp.its.yale.edu/mailman/listinfo/cas
> >
> >
>
>
> --
> -Scott Battaglia
>
> LinkedIn: http://www.linkedin.com/in/scottbattaglia
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20070912/70c3a093/attachment.html 


More information about the cas mailing list