"SchemaManagementException: Schema-validation: missing sequence [hibernate_sequence]" in JBoss EAP

Solution Verified - Updated -


  • Migrating from Hibernate 3 / EAP 5 to Hibernate 5 / EAP 7
  • hibernate.hbm2ddl.auto is set to validate in the persistence.xml (or the legacy/pre-JPA hibernate.cfg.xml)
  • Encountering the exception below when deploying the application:

    ... org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: missing sequence [hibernate_sequence]
            at org.hibernate.tool.schema.internal.AbstractSchemaValidator.validateSequence(AbstractSchemaValidator.java:184)
            at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:310)
            at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:467)
            at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:939)


  • Red Hat JBoss Enterprise Application Platform (EAP) 7
  • Hibernate 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In