aspose file tools*
The moose likes Spring and the fly likes tutorial on setting up transactionmanager on tomcat 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "tutorial on setting up transactionmanager on tomcat 6" Watch "tutorial on setting up transactionmanager on tomcat 6" New topic
Author

tutorial on setting up transactionmanager on tomcat 6

Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 556
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

Joined: Jun 25, 2001
Posts: 15662
    
  15

Tomcat doesn't do transaction management. You haven't configured your Spring beans properly. Moving this to the Spring Forum.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: tutorial on setting up transactionmanager on tomcat 6
 
Similar Threads
Caused by: org.xml.sax.SAXNotRecognizedException: http://java.sun.com/xml/jaxp/properties/schemaLang
Web application
Help with java.lang.OutOfMemoryError: Java heap space
Exception during application startup
AspectJ LTW using Spring