1 Reply Latest reply on Nov 3, 2015 7:26 AM by Tomas Repel

    WildFly 10 Hibernate 5 Spring 4.2 and JTA stack throws ResourceException

    Tomas Repel Newbie

      Hello,

      I have a web application (war file) using Spring 4.2, native Hibernate 4 as persistence provider and JTA for transactions.Everything works as expected on WildFly 10. I tried to upgrade to Hibernate 5, but I after browsing the app for a while I encountered following exception:

       

      ...
      Caused by: javax.resource.ResourceException: IJ000655: No managed connections available within configured blocking timeout (30000 [ms])
        at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.getConnection(SemaphoreArrayListManagedConnectionPool.java:569)
        at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:627)
        at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:599)
        at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:579)
        ... 34 more
      

       

      Have anyone succeeded in using native Hibernate 5 with JTA on WildFly?

       

      I have created a simple reproducer, see trepel/wildfly-hibernate5-error · GitHub

       

      Thanks for your replies.