Quantcast
Channel: HIBERNATE JPA POSTGRESQL, error en Persistence.xml - Stack Overflow en español
Viewing all articles
Browse latest Browse all 2

HIBERNATE JPA POSTGRESQL, error en Persistence.xml

$
0
0

Mi archivo persistence.xml esta asi:

<?xml version="1.0" encoding="UTF-8"?><persistence version="2.0" 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_2_0.xsd"><persistence-unit name="efactory">      <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider><description>Configuración de JPA para el acceso a la base de datos</description><class>com.apiux.entities.PersonaTest</class><properties><property name="hibernate.connection.url" value="jdbc:postgresql://localhost:5432/apiux" /><property name="hibernate.connection.driver_class" value="org.postgresql.Driver" /><property name="hibernate.connection.username" value="postgres" /><property name="hibernate.connection.password" value="apiux" /><property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" /></properties></persistence-unit></persistence>

Pero al momento de iniciar el proceso e ingresar al endpoint para recuperar los datos me arroja el siguiente mensaje de error:

"JBWEB000065: HTTP Status 500 - javax.persistence.PersistenceException: No Persistence provider for EntityManager named efactory"

He revisado temas anteriores y todos aconsejan cambiar la etiqueta <provider>, lo hice pero no funciona.

¿Alguna idea o consejo?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images