This is now handled by the packagesToScan setting. See this file for reference: https://github.com/Jasig/cas/blob/master/cas-server-webapp-support/src/test/resources/jpaTestApplicationContext.xml
I have updated the docs. CAS should work with all versions of Hibernate. What error did you get? - Misagh > On May 27, 2015, at 11:15 AM, Christian Brunotte <[email protected]> wrote: > > 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 -- 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
