Hi,
I just begin doing the project using springframework, and I successfully using the single datasource in my peoject. Since I need multiple databases, then i tried using JtaTransactionManager, so follow the examples in JPetStore and PetClinic, however i always get the following error msg:
2005-05-12 16:39:28,694 ERROR [org.apache.catalina.core.ContainerBase.[Catalina]
.[localhost].[/springapp]] - StandardWrapper.Throwable org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/springapp-servlet.xml]: Initialization of bean failed; nested exception is org.springframework.transaction.TransactionSystemE xception: JTA UserTransaction is not available at JNDI location [java:comp/UserTransaction]; nested exception is javax.nam
ing.NamingException: Cannot create resource instance
org.springframework.transaction.TransactionSystemE xception: JTA UserTransaction is not available at JNDI location [java:comp/UserTransaction]; nested exception
is javax.naming.NamingException: Cannot create resource instance
javax.naming.NamingException: Cannot create resource instance.
.
And I am using springframework 1.1.3, is it problem that I need a new version springframework, or may be anyone can give some suggestions?
Cheers![/b]


Reply With Quote