Are you using the version of JBoss Cache that comes with that CAS module?

On Thu, Feb 25, 2010 at 10:07 PM, Francisco Estanqueiro <
[email protected]> wrote:

> Okay.. Then whats this error? the only thing I changed in ticketRegistry is
> what the ClusteringCAS tutorial said..
> like this:
>
> <bean id="ticketRegistry"
>     class="org.jasig.cas.ticket.registry.JBossCacheTicketRegistry">
>     <property name="cache" ref="cache" />
> </bean>
>
> <bean id="cache" class="org.jasig.cas.util.JBossCacheFactoryBean">
>     <property name="configLocation"
>            value="classpath:jbossTicketCacheReplicationConfig.xml" />
> </bean>
>  Francisco
>
>
> (http://www.ja-sig.org/wiki/display/CASUM/Clustering+CAS)
>
> 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.NoSuchMethodError:
> org.jboss.cache.CacheFactory.createCache(Ljava/io/InputStream;)Lorg/jboss/cache/Cache;
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
>       at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
>       at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>       at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
>       at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
>       at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
>       at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
>       ... 43 more
> Caused by: java.lang.NoSuchMethodError:
> org.jboss.cache.CacheFactory.createCache(Ljava/io/InputStream;)Lorg/jboss/cache/Cache;
>       at
> org.jasig.cas.util.JBossCacheFactoryBean.afterPropertiesSet(JBossCacheFactoryBean.java:49)
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>       ... 53 more
> Feb 26, 2010 3:03:52 AM org.apache.catalina.core.StandardContext
> filterStart
> SEVERE: Exception starting filter springSecurityFilterChain
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'ticketRegistry' defined in ServletContext resource
> [/WEB-INF/spring-configuration/ticketRegistry.xml]: Cannot resolve reference
> to bean 'cache' while setting bean property 'cache'; nested exception is
> 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.NoSuchMethodError:
> org.jboss.cache.CacheFactory.createCache(Ljava/io/InputStream;)Lorg/jboss/cache/Cache;
>       at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
>       at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
>
>
> Scott Battaglia wrote:
>
>> Your CAS versions MUST be the same.  Otherwise stuff like that will happen
>> :-)
>>
>>
>> On Thu, Feb 25, 2010 at 9:58 PM, Francisco Estanqueiro <
>> [email protected] <mailto:[email protected]>> wrote:
>>
>>    I have the following pom.xml
>>
>>       /   <dependency>
>>              <groupId>org.jasig.cas</groupId>
>>              <artifactId>cas-server-webapp</artifactId>
>>              <version>${cas.version}</version>
>>              <type>war</type>
>>              <scope>runtime</scope>
>>          </dependency>
>>
>>          <dependency>
>>               <groupId>org.jasig.cas</groupId>
>>               <artifactId>cas-server-support-x509</artifactId>
>>               <version>${cas.version}</version>
>>          </dependency>
>>
>>          <dependency>
>>              <groupId>org.jasig.cas</groupId>
>>              <artifactId>cas-server-integration-jboss</artifactId>
>>              <version>3.1</version>
>>          </dependency>/
>>
>>    This is creating two libs in (../WEB-INF/lib/) that are entering
>>    in conflict:
>>
>>    spring-ldap-1.1.2.jar
>>    spring-ldap-core-1.3.0.RELEASE.jar
>>
>>    I have something wrong in my pom.xml thats creating this two
>>    files? If I have the version of the artifact
>>    cas-server-integration-jboss set to ${cas.version} it gives me a
>>    CacheFactory error.
>>
>>    Francisco
>>
>>    --    You are currently subscribed to [email protected]
>>    <mailto:[email protected]> as: [email protected]
>>    <mailto:[email protected]>
>>
>>    To unsubscribe, change settings or access archives, see
>>    http://www.ja-sig.org/wiki/display/JSG/cas-user
>>
>>
>> --
>> 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
>>
>
>
> --
> 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
>

-- 
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

Reply via email to