Hi I am looking for a tutorial that takes you through the stages of setting TransactionMangement for the
Tomcat server.
I will be using spring TransactionManagement.
Its to help me sort out the following tomcat deployment bug.
Thanks
ementService,customerService,enterpriseDataSource,transactionManager]; root of factory hierarchy
2010-01-21 16:50:00,929 [main] INFO org.springframework.orm.hibernate3.LocalSessionFactoryBean - Clo
sing Hibernate SessionFactory
2010-01-21 16:50:00,929 [main] INFO org.hibernate.impl.SessionFactoryImpl - closing
2010-01-21 16:50:00,929 [main] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBe
an - Closing JPA EntityManagerFactory for persistence
unit 'persistenceUnit'
2010-01-21 16:50:00,929 [main] INFO org.hibernate.impl.SessionFactoryImpl - closing
2010-01-21 16:50:00,929 [main] ERROR org.springframework.web.context.ContextLoader - Context initiali
zation failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionMa
nager': Invocation of init method failed; nested exception is java.lang.IllegalStateException: No JTA
UserTransaction available - specify either 'userTransaction' or 'userTransactionName' or 'transactio
nManager' or 'transactionManagerName'
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBea
n(AbstractAutowireCapableBeanFactory.java:1401)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(
AbstractAutowireCapableBeanFactory.java:512)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(Ab
stractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFact
ory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(Defaul
tSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactor
y.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.
java:189)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSinglet
ons(DefaultListableBeanFactory.java:557)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitializa
tion(AbstractApplicationContext.java:842)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplication
Context.java:416)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.ja
va:261)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java
:192)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderList
ener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:848)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1211)