posted 15 years ago
I have the following Spring/Hibernate configuration. When I run it under WebLogic, it works fine. OFAPool is a connection pool defined in WebLogic.
However, I want to run Spring/Hibernate with my stand alone program. So I commented out the OFAPool for JndiObjectFactoryBean (since WebLogic is no longer involved), and then uncomment the second tag in the configuration below. I created a class called DevelopmentDriverManagerDataSource, which extends BasicDataSource. This will directly connect to my database.
However, when I run the stand-alone program, I got the below error. It seems that JtaTransactionManager is not set correctly. I don't understand why it works well using WebLogic's database connection pool, but not with stand-alone program. Please help. Thanks in advance.