javax.persistence.PersistenceException: [PersistenceUnit: capacity] Unable to build Hibernate SessionFactory


Solutions on the web

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

Solution icon of github
via GitHub by jasonaowen
, 1 month ago
[PersistenceUnit: cms] Unable to build Hibernate SessionFactory

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

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

Solution icon of googlegroups
[PersistenceUnit: org.jbpm.domain] Unable to build Hibernate SessionFactory

Solution icon of hibernate
via Hibernate JIRA by Jo Mei, 1 year ago
[PersistenceUnit: hibernate5example] Unable to build Hibernate SessionFactory

Solution icon of hibernate
via Hibernate JIRA by Andrei Serea, 1 year ago
[PersistenceUnit: SSB] Unable to build Hibernate SessionFactory

Solution icon of hibernate
via Hibernate JIRA by Karl-Philipp Richter, 2 months ago
[PersistenceUnit: persistence1] Unable to build Hibernate SessionFactory

Solution icon of hibernate
via Hibernate JIRA by Luca Domenichini, 1 year ago
[PersistenceUnit: TestPU] Unable to build Hibernate SessionFactory

Solution icon of sourceforge
[PersistenceUnit: junit] 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, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
13 times, 2 months ago
2 times, 3 months ago
15 times, 8 months ago
4 more bugmates