Atomikos Forum

Could not instantiate TransactionManagerLookup

Hello all.

I am new to JTA in general, and Atomikos in particular.

I am trying to hook up to two different databases with Spring and Hibernate.

In my testing (testNG), I get this error.

Any pointers would be greatly appreciated.

Bruce.

Caused by: org.hibernate.HibernateException: Could not instantiate TransactionManagerLookup 'com.atomikos.icatch.jta.hibernate3.TransactionManagerLookup'
    at org.hibernate.transaction.TransactionManagerLookupFactory.getTransactionManagerLookup(TransactionManagerLookupFactory.java:93)
    at org.hibernate.transaction.JTATransactionFactory.resolveUserTransactionName(JTATransactionFactory.java:136)
    at org.hibernate.transaction.JTATransactionFactory.configure(JTATransactionFactory.java:94)
    at org.hibernate.transaction.TransactionFactoryFactory.buildTransactionFactory(TransactionFactoryFactory.java:79)
    at org.hibernate.cfg.SettingsFactory.createTransactionFactory(SettingsFactory.java:452)
    at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:165)
    at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325)
    at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)
    at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
Bruce McGuire Send private email
Thursday, September 04, 2008
 
 
Did you make sure that all atomikos jars are in the classpath of your Hibernate app?
Guy Pardon Send private email
Friday, September 05, 2008
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics