<?xml version="1.0" encoding="UTF-8"?>
<Context>
    <!-- use standard Java delegation (parent-first) model -->
    <Loader delegate="true" />

    <Listener className="bitronix.tm.integration.tomcat55.BTMLifecycleListener" />

    <Resource name="TransactionSynchronizationRegistry" auth="Container" type="javax.transaction.TransactionSynchronizationRegistry"
              factory="bitronix.tm.BitronixTransactionSynchronizationRegistryObjectFactory" />

    <Transaction factory="bitronix.tm.BitronixUserTransactionObjectFactory" />
</Context>

<?xml version="1.0" encoding="UTF-8"?>
<Context>
    <!--
    Use non-standard Java delegation (parent-last) model because of jboss-logging, which on JWS is of version 3.1.4
    while tests need at least version 3.2.0 because of Hibernate
   -->
    <Loader delegate="false"/>

    <Listener className="bitronix.tm.integration.tomcat55.BTMLifecycleListener" />

    <Resource name="TransactionSynchronizationRegistry" auth="Container" type="javax.transaction.TransactionSynchronizationRegistry"
              factory="bitronix.tm.BitronixTransactionSynchronizationRegistryObjectFactory" />

    <Transaction factory="bitronix.tm.BitronixUserTransactionObjectFactory" />
</Context>

Change Java delegation model from parent-first to parent-last on tomcat 8
Change Java delegation model from parent-first to parent-last on tomcat 8
