I got the following error:
Error creating bean named 'Org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor # 0' defined in path resource of path [jpaDaoContext.xml]: Bean initialization failed; org.springframework.beans.factory.BeanCreationException nested exception: error creating a bean with the name 'vodEntityManagerFactory' defined in the class resource path [jpaDaoContext.xml]: the init method call failed; the nested exception is javax.persistence.PersistenceException: [PersistenceUnit: vodPersistenceUnit] class or package not found.
I looked at Google and I was told to select the transaction type = RESOURCE_LOCAL, but the settings were already like that. What is wrong with these settings:
<?xml version="1.0" encoding="UTF-8"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0"> <persistence-unit name="vodPersistenceUnit" transaction-type="RESOURCE_LOCAL"> <class>mypackage.persistent.HistoriqueAction</class> <class>mypackage.persistent.ParametresTechniques</class> <class>mypackage.persistent.TicketType</class> <class>mypackage.persistent.TransactionType</class> <class>mypackage.persistent.StatutSession</class> <class>mypackage.persistent.Statistique</class> <class>mypackage.persistent.StatUser</class> <exclude-unlisted-classes /> </persistence-unit> </persistence>
Hi
source share