We're updating the issue view to help you get more done. 

JtaTransaction logs excessive HHH000426 warning even if cache is disabled

Description

org.hibernate.engine.transaction.internal.jta.JtaTransaction logs "HHH000426: You should set hibernate.transaction.manager_lookup_class if cache is enabled" warnings even if cache is disabled.

hibernate.cfg.xml config:
<!-- Disable the second-level cache (begin) -->
<property name="hibernate.cache.use_query_cache">false</property>
<property name="hibernate.cache.use_second_level_cache">false</property>
<property name="hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<!-- Disable the second-level cache (end) -->

Additionally, in Hibernate 4 hibernate.transaction.manager_lookup_class parameters is deprecated and hibernate.transaction.jta.platform should be used instead.

What is the root cause of this warning and can we get rid of it?

If you need any additional info, please let me know.

Thx.

Environment

Oracle 11g,CentOs 6.4, java1.7, Bitronix TM 2.1.3

Status

Assignee

Brett Meyer

Reporter

Mario Hercog

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

4.2.2

Priority

Minor