Hibernate 5.3.6 + WildFly 14 no transaction is in progress

I’m trying out WildFly 14 + Hibernate 5.3.6 (which ships as default) and in the process I’ve ran across this exception:

Caused by: javax.persistence.TransactionRequiredException: no transaction is in progress
at org.hibernate.internal.SessionImpl.checkTransactionNeeded(SessionImpl.java:3552)
at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1444)
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1440)

The same deployables work just fine with WildFly 13 and Hibernate 5.1.14.

The insert I’m trying to do is started from within a method inside an EJB, method that is annotated with @TransactionAttribute(TransactionAttributeType.REQUIRED) so I’m not sure where the problem may lie.

It’s best to ask the question on the Wildfly forum. They surely know better how the Hibernate integration works internally.

Already did but I thought there was something changed in Hibernate 5.3.6 that caused such behavior.
Thanks!

It’s a Hibernate issue if you can replicate with this test case that uses Hibernate itself, as opposed to an integration.