Hi Andy, I'm using 3.4.7 too. I see your versions of hibernate-core and hibernate-annotations are both 3.5.6-Final.
Was there a reason you chose those versions? They seem to differ from what's included in the cas distribution and I'm wondering if maybe that's what's giving me trouble. Cheers, Harry -----Original Message----- From: Andrew Morgan [mailto:[email protected]] Sent: Tuesday, April 19, 2011 11:34 AM To: [email protected] Subject: RE: [cas-user] problems with wiki entry JpaTicketRegistry On Tue, 19 Apr 2011, Harry Hoffman wrote: <snip> > 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 'entityManagerFactory' while setting constructor argument; nested > exception is org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'entityManagerFactory' defined in ServletContext > resource [/WEB-INF/spring-configuration/ticketRegistry.xml]: Invocation of > init method failed; nested exception is > java.lang.IncompatibleClassChangeError: class > org.hibernate.cfg.ExtendedMappings has interface org.hibernate.cfg.Mappings > as super class > > > I'm kinda stuck here. Any help would be greatly appreciated. I'm happy to > do a wiki write up of moving from the default ticket store to a database > backend once I have this up and running. Here is a snippet from my pom.xml for the dependencies: <dependencies> <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-ldap</artifactId> <version>${cas.version}</version> </dependency> <dependency> <groupId>c3p0</groupId> <artifactId>c3p0</artifactId> <version>${c3p0.version}</version> <scope>runtime</scope> </dependency> <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> <version>${commons.collections.version}</version> <type>jar</type> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <version>${hibernate.core.version}</version> <type>jar</type> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-entitymanager</artifactId> <version>${hibernate.core.version}</version> <type>jar</type> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-annotations</artifactId> <version>${hibernate.annotations.version}</version> <scope>compile</scope> <type>jar</type> </dependency> </dependencies> <properties> <cas.version>3.4.7</cas.version> <slf4j.version>1.6.1</slf4j.version> <c3p0.version>0.9.1.2</c3p0.version> <commons.collections.version>3.2.1</commons.collections.version> <hibernate.core.version>3.5.6-Final</hibernate.core.version> <hibernate.annotations.version>3.5.6-Final</hibernate.annotations.version> </properties> I'm using c3p0 for database connection pooling. Andy -- 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
