org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘entityManagerFactory’ defined in file [/home/majid/Project/spring-jpa-primefaces-tutorial-master/target/primefaces-spring-jpa-tutorial/WEB-INF/classes/META-INF/spring/applicationContext-db.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/persistence/Convert

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via journaldev.com by Unknown author, 1 year ago
Error creating bean with nameentityManagerFactorydefined in file [/home/majid/Project/spring-jpa-primefaces-tutorial-master/target/primefaces-spring-jpa-tutorial/WEB-INF/classes/META-INF/spring/applicationContext-db.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/persistence/Convert
via journaldev.com by Unknown author, 1 year ago
Error creating bean with nameentityManagerFactorydefined in file [/home/majid/Project/spring-jpa-primefaces-tutorial-master/target/primefaces-spring-jpa-tutorial/WEB-INF/classes/META-INF/spring/applicationContext-db.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/persistence/Convert
via Stack Overflow by AnhNguyen
, 1 year ago
Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/spring-data.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: error trying to scan <jar-file>: file:/C:/Users/Sony/Documents/NetBeansProjects/PCRFWebConfig/build/web/WEB-INF/classes/
via GitHub by kratosmat
, 7 months ago
Error creating bean with name 'geofenceEntityManagerFactory' defined in URL [jar:file:/usr/local/tomcat/webapps/geofence/WEB-INF/lib/geofence-persistence-3.2.1.jar!/applicationContext-geofenceDatasource.xml]: Invocation of init method failed; nested
via Stack Overflow by Ost Dan
, 8 months ago
Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/appContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/boot/registry/classloading/internal/ClassLoaderServiceImpl$Work
via Stack Overflow by Droide
, 2 years ago
Error creating bean with name 'emf' defined in ServletContext resource [/WEB-INF/spring/jpa-tx-config.xml]: Invocation of init method failed; nested exception is java.lang.AbstractMethodError
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘entityManagerFactory’ defined in file [/home/majid/Project/spring-jpa-primefaces-tutorial-master/target/primefaces-spring-jpa-tutorial/WEB-INF/classes/META-INF/spring/applicationContext-db.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/persistence/Convert
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.prepareMetadataSources(EntityManagerFactoryBuilderImpl.java:386)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.(EntityManagerFactoryBuilderImpl.java:224)
at org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:51)
at org.hibernate.jpa.HibernatePersistenceProvider.getEntityManagerFactoryBuilder(HibernatePersistenceProvider.java:182)
at org.hibernate.jpa.HibernatePersistenceProvider.getEntityManagerFactoryBuilder(HibernatePersistenceProvider.java:177)
at org.hibernate.jpa.HibernatePersistenceProvider.createContainerEntityManagerFactory(HibernatePersistenceProvider.java:152)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:336)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1612)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.