Error: No PersistenceProvider specified in EntityManagerFactory configuration




Asked on November 24, 2015
I am new to spring. I am integrating spring and JPA. My application is throwing error. How to resolve.

Caused by: java.lang.IllegalArgumentException: No PersistenceProvider specified in EntityManagerFactory configuration, and chosen PersistenceUnitInfo does not specify a provider class name either
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:325)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:318)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1631)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1568)



Replied on November 24, 2015
You are missing persistence.xml. It should be there in META-INF in classpath.

Write Answer











©2024 concretepage.com | Privacy Policy | Contact Us