javahibernatedialectwildfly-11

app using hibernate 5.4.27.Final is not deploying successful in wildfly-11.0.0.Final


I have an app (version 201908) deployed in wildfly-11.0.0.Final that's using org.hibernate-hibernate-core-3.6.9.Final and java 8 and is successfully deployed.

When I'm trying to deploy this app's newer version (202211), that's using org.hibernate-hibernate-core-5.4.27.Final, in the same wildfly-11.0.0.Final, still with java 8, with the same standalone.xml it gets stuck on this last line from here:

INFO  com.commons.utilities.persistence.HibernateUtils - Determining Hibernate dialect
INFO  com.commons.utilities.persistence.HibernateUtils - Using DialectFactory and DB properties to determine dialect
INFO  org.hibernate.Version - HHH000412: Hibernate ORM core version 5.4.27.Final
INFO  org.hibernate.dialect.Dialect - HHH000400: Using dialect: org.hibernate.dialect.SQLServer2012Dialect
INFO  com.commons.utilities.persistence.HibernateUtils - Chosen dialect: org.hibernate.dialect.SQLServer2012Dialect
INFO  com.commons.utilities.persistence.HibernateUtils - There are mapping resources, examining for SQLSERVER
INFO  org.hibernate.annotations.common.Version - HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
INFO  org.hibernate.dialect.Dialect - HHH000400: Using dialect: org.hibernate.dialect.SQLServer2012Dialect

And it's failing with a timeout: enter image description here

On my machine, both versions are deploying successfully and logs are looking like this:

INFO  org.hibernate.annotations.common.Version - HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
INFO  org.hibernate.dialect.Dialect - HHH000400: Using dialect: org.hibernate.dialect.SQLServer2012Dialect
WARN  org.hibernate.id.UUIDHexGenerator - HHH000409: Using org.hibernate.id.UUIDHexGenerator which does not generate IETF RFC 4122 compliant UUID values; consider using org.hibernate.id.UUIDGenerator instead
INFO  org.hibernate.id.enhanced.TableGenerator - HHH000398: Explicit segment value for id generator [hibernate_unique_key.sequence_name] suggested; using default [default]
INFO  org.hibernate.id.enhanced.TableGenerator - HHH000398: Explicit segment value for id generator [hibernate_unique_key.sequence_name] suggested; using default [default]
INFO  org.hibernate.id.enhanced.TableGenerator - HHH000398: Explicit segment value for id generator [hibernate_unique_key.sequence_name] suggested; using default [default]
INFO  org.hibernate.id.enhanced.TableGenerator - HHH000398: Explicit segment value for id generator [hibernate_unique_key.sequence_name] suggested; using default [default]
INFO  org.hibernate.id.enhanced.TableGenerator - HHH000398: Explicit segment value for id generator [hibernate_unique_key.sequence_name] suggested; using default [default]
INFO  com.commons.preferences.spring.PreferenceBasedPropertyOverrideConfigurer - Post-Processing the Bean Factory
INFO  com.commons.preferences.spring.PreferenceBasedPropertyOverrideConfigurer - Listing the DB-stored configuration overrides
INFO  org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator - HHH000490: Using JtaPlatform implementation: [org.springframework.orm.hibernate5.ConfigurableJtaPlatform]
........

I tried to increase the timeout, even the deployment-timeout in standalone.xml, but still not passing this line... Anyone, any suggestion what I can try to make it work? Thanks!


Solution

  • Enabling more logs found that was something related to the XA of my database. I changed in my active datasource to point toward a non-xa datasource and it worked.