2 Replies Latest reply on Dec 27, 2017 1:27 AM by fg192

    Wildfly 11: Cannot upload deployment - Unable to build Hibernate SessionFactory

    fg192

      Hi,

       

      I try to deploy filename.*war and get the exception below:

      {\"WFLYCTL0080: Failed services\" => {\"jboss.persistenceunit.\\\"NameWarFile.war#[DataSouceName]\\\"\" => \"javax.persistence.PersistenceException: [PersistenceUnit: DataSouceName] Unable to build Hibernate SessionFactory
          Caused by: javax.persistence.PersistenceException: [PersistenceUnit: DataSouceName] Unable to build Hibernate SessionFactory
          Caused by: org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.collection.OneToManyPersister
          Caused by: org.hibernate.HibernateException: Unable to parse order-by fragment
          Caused by: java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token\"}}

      I also check successfully connection to data source at administrator console in Widfly [Configuration: Subsystems    Subsystem: Datasources    Type: Non-XA   DataSouceName]

       

      Please kindly help to find out approach to troubleshoot the issue.

      Thanks,