File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tutorial on setting up transactionmanager on tomcat 6

 
Tony Evans
Ranch Hand
Posts: 597
1
  • 0
  • Mark post as helpful
  • send pies
  • 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)

 
Tim Holloway
Saloon Keeper
Pie
Posts: 17616
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic