Home  >  Forum  >  Spring
Post New Query

Error: No PersistenceProvider specified in EntityManagerFactory configuration


joined on
August 12,2015
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)
joined on
November 09,2013
Replied on November 24,2015

You are missing persistence.xml. It should be there in META-INF in classpath.

Write Answer









Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us