I am trying to implement a CAS 4.0 cluster with a JBossCacheTicketRegistry. The
problem is that the war file fails to deploy because of exceptions thrown
creating the cache bean. I am using the jbossTicketCacheReplicationConfig.xml
from our CAS 3.4 cluster.
Here is an excerpt from ticketRegistry.xml:
<bean id="ticketRegistry"
class="org.jasig.cas.ticket.registry.JBossCacheTicketRegistry"
p:cache-ref="cache" />
<bean id="cache" class="org.jasig.cas.util.JBossCacheFactoryBean"
p:configLocation="classpath:jbossTicketCacheReplicationConfig.xml" />
And here is the exception info in catalina.out:
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'cache' defined in ServletContext resource
[/WEB-INF/spring-configuration/ticketRegistry.xml]: Invocation of init method
failed; nested exception is java.lang.NullPointerException
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1512)
~[spring-beans-3.2.6.RELEASE.jar:3.2.6.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
~[spring-beans-3.2.6.RELEASE.jar:3.2.6.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
~[spring-beans-3.2.6.RELEASE.jar:3.2.6.RELEASE]
... 32 more
Caused by: java.lang.NullPointerException
at
org.jboss.cache.config.parsing.XmlConfigurationParser2x.getMBeanElement(XmlConfigurationParser2x.java:206)
~[jbosscache-core.jar:3.2.5.GA]
at
org.jboss.cache.config.parsing.XmlConfigurationParser2x.parseStream(XmlConfigurationParser2x.java:104)
~[jbosscache-core.jar:3.2.5.GA]
at
org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:179)
~[jbosscache-core.jar:3.2.5.GA]
at
org.jasig.cas.util.JBossCacheFactoryBean.afterPropertiesSet(JBossCacheFactoryBean.java:64)
~[cas-server-integration-jboss-4.0.0.jar:4.0.0]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1571)
~[spring-beans-3.2.6.RELEASE.jar:3.2.6.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1509)
~[spring-beans-3.2.6.RELEASE.jar:3.2.6.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
~[spring-beans-3.2.6.RELEASE.jar:3.2.6.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
~[spring-beans-3.2.6.RELEASE.jar:3.2.6.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
~[spring-beans-3.2.6.RELEASE.jar:3.2.6.RELEASE]
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
~[spring-beans-3.2.6.RELEASE.jar:3.2.6.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
~[spring-beans-3.2.6.RELEASE.jar:3.2.6.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
~[spring-beans-3.2.6.RELEASE.jar:3.2.6.RELEASE]
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:320)
~[spring-beans-3.2.6.RELEASE.jar:3.2.6.RELEASE]
... 32 more
Has anyone else had this problem? Is the jbossTicketCacheReplicationConfig file
different in CAS 4.0?
Any help would be much appreciated!
Sam Pratt
Suffolk University ITS
[email protected]
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user