On Tue, 19 Apr 2011, Harry Hoffman wrote:
Thanks again, Scott.
So, I'm getting further along all the while feeling like I'm in CPAN
module dependency hell L
It seems like I needed to add a few jar files to deal with class not found
errors. I specifically added: commons-dbcp-1.4.jar,
hibernate-entitymanager.jar, hibernate-annotations.jar, concurrent.jar
When I start tomcat back up I get the following Error:
2011-04-19 10:47:00,890 ERROR
[org.springframework.web.context.ContextLoader] - <Context initialization
failed>
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.NoClassDefFoundError:
org/jboss/util/file/ArchiveBrowser$Filter
If I add the jboss-common-client.jar file (which contains the
ArchiveBrowser$Filter.class file) then I seem to have a problem of
conflicting classes (?):
2011-04-19 10:56:24,735 ERROR
[org.springframework.web.context.ContextLoader] - <Context initialization
failed>
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