javax.persistence.PersistenceException

[PersistenceUnit: capacity] Unable to build Hibernate SessionFactory


Solutions on the web1586

Solution icon of hibernate
via Hibernate JIRA by ChB, 3 months ago
[PersistenceUnit: capacity] Unable to build Hibernate SessionFactory

Solution icon of coderanch
via Coderanch by Brian Jones Jr., 8 months ago
[PersistenceUnit: primary] Unable to build Hibernate SessionFactory

Solution icon of github
via GitHub by deepu105
, 1 year ago
[PersistenceUnit: default] Unable to build Hibernate SessionFactory

Solution icon of github
via GitHub by wildfly-ci
, 11 months ago
[PersistenceUnit: shallow_pu] Unable to build Hibernate SessionFactory

Solution icon of github
[PersistenceUnit: default] Unable to build Hibernate SessionFactory

Solution icon of github
[PersistenceUnit: default] Unable to build Hibernate SessionFactory

Solution icon of googlegroups
via Google Groups by Unknown author, 7 months ago
[PersistenceUnit: org.jbpm.domain] Unable to build Hibernate SessionFactory

Solution icon of googlegroups
via Google Groups by Sai Mallela, 1 month ago
[PersistenceUnit: jpaGoogleAuthenticatorContext] Unable to build Hibernate SessionFactory

Solution icon of googlegroups
via Google Groups by Unknown author, 2 weeks ago
[PersistenceUnit: org.jbpm.domain] Unable to build Hibernate SessionFactory

Solution icon of hibernate
via Hibernate JIRA by Johannes Zinn, 8 months ago
[PersistenceUnit: projectPU] Unable to build Hibernate SessionFactory

Stack trace

  • javax.persistence.PersistenceException: [PersistenceUnit: capacity] Unable to build Hibernate SessionFactory at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:951) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:881) at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:58) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:39) at de.egore911.capacity.ui.filter.EntityManagerFilter.init(EntityManagerFilter.java:58) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4659) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5281) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.startup.HostConfig.reload(HostConfig.java:1390) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1291) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1552) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:285) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1141) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1377) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1381) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1349) at java.lang.Thread.run(Thread.java:745) Caused by: org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: missing table [ability] at org.hibernate.tool.schema.internal.AbstractSchemaValidator.validateTable(AbstractSchemaValidator.java:121) at org.hibernate.tool.schema.internal.GroupedSchemaValidatorImpl.validateTables(GroupedSchemaValidatorImpl.java:42) at org.hibernate.tool.schema.internal.AbstractSchemaValidator.performValidation(AbstractSchemaValidator.java:89) at org.hibernate.tool.schema.internal.AbstractSchemaValidator.doValidation(AbstractSchemaValidator.java:68) at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:185) at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:66) at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:309) at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:493) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:878) ... 21 more

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

Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
13 times, 3 weeks ago
2 times, 1 month ago
15 times, 6 months ago
4 more bugmates