hibernate-orm-5.tar.gz Dear Guillaume, thanks for your response. I have injected my test case into our test case template (https://github.com/hibernate/hibernate-test-case-templates/tree/master/orm/hibernate-orm-5). It works fine when Hibernate accesses the PostgreSQL database directly via transaction-type="RESOURCE_LOCAL" (see attachment). I looks like that the problem I have is related to the fact that GlassFish is in the game. So could you please have a detailed view of my reporting above (especially th error messages). Maybe you have an idea how fix it. Actually there are several similar issues in the Hibernate JIRA, e.g., https://hibernate.atlassian.net/browse/HHH-10402?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel&showAll=true, which are still unresolved. So it looks like that the combination of Hibernate and Glassfish is not working well since Glassfish 4. |