2012/6/28 Stefan Holodnick <[email protected]>:
> Thank you, Jérôme.  Much appreciated.

I got an other error with hibernate (trying to configure a jpa ticket
store with mysql backend). I can't find which packages provides a
proper/working implementation of
javax.persistence.spi.PersistenceProvider.

2012-06-29 16:02:29,680 ERROR
[org.springframework.web.context.ContextLoader] - <Context
initialization failed>
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'entityManagerFactory' defined in
ServletContext resource
[/WEB-INF/spring-configuration/ticketRegistry.xml]: Cannot create
inner bean 
'org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter#5ae8a0cd'
of type [org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter]
while setting bean property 'jpaVendorAdapter'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name
'org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter#5ae8a0cd'
defined in ServletContext resource
[/WEB-INF/spring-configuration/ticketRegistry.xml]: Instantiation of
bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Could not
instantiate bean class
[org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter]:
Constructor threw exception; nested exception is
java.lang.NoClassDefFoundError:
javax/persistence/spi/PersistenceProvider

I tried installing hibernate-jpa-2.1-api and hibernate-jpa-2.0-api but
that seems not to work:


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.ejb.HibernatePersistence does not implement the
requested interface javax.persistence.spi.PersistenceProvider

My WEB-INF/spring-configuration/ticketRegistry.xml is the same as the
example on https://wiki.jasig.org/display/CASUM/JpaTicketRegistry
except for database credentials; I tried using hibernate jars version
4.1.4 as well as 3.6.10 with the same results.


-- 
Frank Van Damme
No part of this copyright message may be reproduced, read or seen,
dead or alive or by any means, including but not limited to telepathy
without the benevolence of the author.

-- 
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

Reply via email to