javax.persistence.PersistenceException

\[PersistenceUnit: default\] Unable to build EntityManagerFactory

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web140

  • via openxava by dark_rev_82
    ,
  • via openxava by nishiboy
    ,
  • via openxava by ztw
    ,
  • Stack trace

    • javax.persistence.PersistenceException: \[PersistenceUnit: default\] Unable to build EntityManagerFactory at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51) at org.openxava.jpa.XPersistence.getEntityManagerFactory(XPersistence.java:180) at org.openxava.jpa.XPersistence.createManager(XPersistence.java:108) at org.openxava.annotations.parse.AnnotatedClassParser.obtainManagedClassNamesUsingHibernate(AnnotatedClassParser.java:2170) at org.openxava.annotations.parse.AnnotatedClassParser.getManagedClassNames(AnnotatedClassParser.java:2086) at org.openxava.annotations.parse.AnnotatedClassParser.getClassNameFor(AnnotatedClassParser.java:2048) at org.openxava.annotations.parse.AnnotatedClassParser.parse(AnnotatedClassParser.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.openxava.util.Objects.execute(Objects.java:193) at org.openxava.util.Objects.execute(Objects.java:112) at org.openxava.component.ComponentParser.parseAnnotatedClass(ComponentParser.java:54) at org.openxava.component.ComponentParser.parse(ComponentParser.java:34) at org.openxava.component.MetaComponent.get(MetaComponent.java:60) at org.openxava.component.MetaComponent.exists(MetaComponent.java:75) at org.openxava.application.meta.MetaApplication.existsModel(MetaApplication.java:161) at org.openxava.application.meta.MetaApplication.getMetaModule(MetaApplication.java:149) at org.openxava.controller.ModuleManager.getMetaModule(ModuleManager.java:776) at org.openxava.controller.ModuleManager.setupModuleControllers(ModuleManager.java:158) at org.openxava.controller.ModuleManager.setModuleName(ModuleManager.java:753)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitor2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    PizPiz
    7 times, last one
    1 more bugmates