I am trying to get my JPA Ticket registry up and running following these
instructions:
https://wiki.jasig.org/display/CASUM/JpaTicketRegistry
At deploy time I get this error:
[#|2011-06-07T10:25:41.032-0600|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=2
3;_ThreadName=Thread-1;|2011-06-07 10:25:41,026 ERROR
[org.springframework.web.context.ContextLoader] - <Context initialization
failed>
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'ticketRegistry' defined in ServletConte
xt resource [/WEB-INF/spring-configuration/ticketRegistry.xml]: Cannot resolve
reference to bean 'entityManagerFactory' while s
etting constructor argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean w
ith name 'entityManagerFactory' defined in ServletContext resource
[/WEB-INF/deployerConfigContext.xml]: Invocation of init met
hod failed; nested exception is java.lang.NoSuchMethodError:
org.hibernate.cfg.AnnotationConfiguration.setProperty(Ljava/lang/S
tring;Ljava/lang/String;)Lorg/hibernate/cfg/AnnotationConfiguration;
My overlay pom.xml has this: (Any idea what versions I really need?)
Cheers,
Bryan
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>3.5.0-CR-2</version> NOTE: This was 3.3.1.ga, but that
caused an earlier Exception at deploy time / this version is what I used for
service manager
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-commons-annotations</artifactId>
<version>3.3.0.ga</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.3.0.ga</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
<version>3.2.4.sp1</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>concurrent</groupId>
<artifactId>concurrent</artifactId>
<version>1.3.4</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>c3p0</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.1.2</version>
<scope>runtime</scope>
</dependency>
--
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