Hello I was following the JPA Ticket Registiry tutorial on https://jasig.github.io/cas/4.0.x/installation/JPA-Ticket-Registry.html but had problems getting Spring+Hibernate to work.
In CAS 3.x there was as persistence.xml that was inherited from cas-server-webapp when using the Maven overlay system: https://github.com/Jasig/cas/blob/3.6.x/cas-server-webapp/src/main/resources/META-INF/persistence.xml This file has vanished in 4.0.x: https://github.com/Jasig/cas/tree/4.0.x/cas-server-webapp/src/main/resources/ Yet, it seems to be necessary: 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.IllegalStateException: No persistence units parsed from {classpath*:META-INF/persistence.xml} Some sources on the net suggests that the persistence.xml might be optional but at least it does not work with the above tutorial and the latest versions of Hibernate and Spring in the pom.xml. NB: I could only get CAS 4.0.1 to work with Hibernate 4.1.0.Final, not 4.1.10.Final. It would be nice if the proper value of ${hibernate.core.version} could be either documented in the tutorial or inherited from the Maven Overlay. Or should that be the case and I did something wrong? Best Regards -christian- -- 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
