• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

tutorial on setting up transactionmanager on tomcat 6

 
Ranch Hand
Posts: 681
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)

 
Saloon Keeper
Posts: 26541
187
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat doesn't do transaction management. You haven't configured your Spring beans properly. Moving this to the Spring Forum.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic