javax.persistence.PersistenceException: [PersistenceUnit: primary] Unable to build EntityManagerFactory

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 hivmr.com by Unknown author, 1 year ago
[PersistenceUnit: primary] Unable to build EntityManagerFactory
via hivmr.com by Unknown author, 1 year ago
[PersistenceUnit: primary] Unable to build EntityManagerFactory
via https://bugzilla.redhat.com/bugzilla/ by Marek Schmidt, 1 year ago
via Google Groups by Tp Chan, 1 year ago
[PersistenceUnit: XXXXXXJpa] Unable to build EntityManagerFactory
via Stack Overflow by Manoj Kumar
, 1 year ago
[PersistenceUnit: Star] Unable to build EntityManagerFactory
via Stack Overflow by AbhijitG
, 4 months ago
[PersistenceUnit: Eclipselink_JPA] Unable to build EntityManagerFactory
org.hibernate.MappingException: Could not determine type for: org.jboss.as.quickstart.hibernate4.model.EmailAddress, at table: MemberHibernate4Demo, for columns: [org.hibernate.mapping.Column(email)]
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:314)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:292)
at org.hibernate.mapping.Property.isValid(Property.java:239)
at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:469)
at org.hibernate.mapping.RootClass.validate(RootClass.java:270)
at org.hibernate.cfg.Configuration.validate(Configuration.java:1284)
at org.hibernate.ejb.EntityManagerFactoryImpl.init(EntityManagerFactoryImpl.java:94)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:920)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:200)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$600(PersistenceUnitServiceImpl.java:57)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:99)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
at org.jboss.threads.JBossThread.run(JBossThread.java:122)

Users with the same issue

2 times, 1 week ago
4 times, 1 month ago
9 times, 2 months ago
Once, 3 months ago
2 times, 4 months ago

Write tip

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