manolan (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMDU5OTA3NDcx...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16134?atlOrigin=eyJpIjoiMDU5OT...
) HHH-16134 (
https://hibernate.atlassian.net/browse/HHH-16134?atlOrigin=eyJpIjoiMDU5OT...
) Deploying Hibernate on WAS 8.5.5 tries to use Liberty JTA Platform (
https://hibernate.atlassian.net/browse/HHH-16134?atlOrigin=eyJpIjoiMDU5OT...
)
Issue Type: Bug Affects Versions: 5.3.23 Assignee: Unassigned Components: hibernate-core
Created: 03/Feb/2023 05:39 AM Environment: WAS 8.5.5.22 Priority: Major Reporter: manolan
(
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
When upgrading some old applications to Hibernate 5, we have encountered a problem where
Hibernate tries to use the Liberty JTA Platform:
o.s.o.h.SpringSessionContext - Could not introspect Hibernate JtaPlatform for
SpringJtaSessionContext
org.hibernate.engine.transaction.jta.platform.spi.JtaPlatformException: Could not obtain
WebSphere Liberty transaction manager instance
at
org.hibernate.engine.transaction.jta.platform.internal.WebSphereLibertyJtaPlatform.locateTransactionManager(WebSphereLibertyJtaPlatform.java:42)
I can override this by setting hibernate.transaction.jta.platform directly.
Looking at *StandardJtaPlatformResolver* source code, I can see that it looks first for
the existence of a class com.ibm.tx.jta.TransactionManagerFactory and, if it finds it,
chooses to use Liberty. At a guess, I would say this check is flawed and this class is
found in Websphere 8.5.5.x not just in the Liberty profile.
(
https://hibernate.atlassian.net/browse/HHH-16134#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16134#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100214- sha1:6115380 )