1 Reply Latest reply on Feb 27, 2013 10:31 AM by Galder Zamarreño

    Failed to create sessionFactory object.org.infinispan.CacheException: This is transactional cache but no transaction manager could be found. Configure the transaction manager lookup properly.

    Shashank Tiwari Newbie

      can some body help me in solving this error

      Failed to create sessionFactory object.org.infinispan.CacheException: This is transactional cache but no transaction manager could be found. Configure the transaction manager lookup properly.

       

      I am using hibernate 4.0

      and infinispan in the standalone environment.

       

      my hibernate.cfg.xml is

       

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE hibernate-configuration PUBLIC

                          "-//Hibernate/Hibernate Configuration DTD 3.0//EN"

                          "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

      <hibernate-configuration>

          <session-factory>

              <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>

              <property name="hibernate.connection.password">GM10DATA</property>

              <property name="hibernate.connection.url">jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.253.102)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=UEM)))</property>

              <property name="hibernate.connection.username">GM10DATA</property>

              <property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property>

              <property name="hibernate.connection.pool_size">10</property>

              <property name="show_sql">true</property>

              <property name="hibernate.cache.use_second_level_cache">true</property>

              <property name="hibernate.cache.use_query_cache">true</property>

              <property name="hibernate.cache.region.factory_class">org.hibernate.cache.infinispan.InfinispanRegionFactory</property>

              <property name="hibernate.cache.infinispan.statistics">false</property>

              <property name="org.hibernate.service.jta.platform.spi.JtaPlatform">org.hibernate.transaction.JBossTSStandaloneTransactionManagerLookup</property>

              <property name="current_session_context_class">jta</property>

              <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>

              <property name="hibernate.cache.infinispan.entity.eviction.strategy">LRU</property>

                          <property name="hibernate.cache.infinispan.entity.eviction.wake_up_interval">2000</property>

                          <property name="hibernate.cache.infinispan.entity.eviction.max_entries">5000</property>

                          <property name="hibernate.cache.infinispan.entity.expiration.lifespan">60000</property>

                          <property name="hibernate.cache.infinispan.entity.expiration.max_idle">30000</property>

       

       

              <mapping class="com.terminalstatus.pojo.TerminalCache" />

             

          </session-factory>

      </hibernate-configuration>

       

       

      i am like stuck at this point please please somebody help me