exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionManager' is defined

Ads
 

exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionManager' is defined

Hi,

In my web application following error is coming:

exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionManager' is defined
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
    org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
    org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
    org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:684)
    org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
    org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
    org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:658)
    org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:530)
    org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:484)
    org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
    javax.servlet.GenericServlet.init(GenericServlet.java:158)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
    org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
    org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
    org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    java.lang.Thread.run(Thread.java:745)

How to solve this error?

Thanks

View Answers

May 5, 2016 at 1:30 AM

Hi,

Add following code in spring-context.xml file:

<bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager"/>

This error is coming because your application is not able to find Transaction manager class.

Thanks

Ads









Related Tutorials/Questions & Answers:
exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionManager' is defined
is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionManager' is defined...: No bean named 'transactionManager' is defined  Hi, In my web... following code in spring-context.xml file: <bean id="transactionManager" class
User Defined Exception In Java
User Defined Exception In Java In terms of programming when we talk about.... Then you will be required to create your own exception. A user defined exception can... for defining a user defined exception your exception class should be the subclass
Advertisements
bean creation exception
bean creation exception  hi i am getting exception while running simple spring ioc program Exception in thread "main... path resource [beans.xml]; nested exception is java.io.FileNotFoundException
Java User-defined Exception
Java User-defined Exception In this tutorial, you will learn about the User-defined Exceptions. These custom exceptions actually all the programmer... a user defined exception if the student marks entered, is less than fifteen
User Defined Exception
User Defined Exception     ....     How to Handle and create User-defined Exception The keywords used...-defined exceptions. This Exception class inherits all the method from Throwable
exception
user defined unchecked exception  can we create user defined...;Please visit the following links: http://www.roseindia.net/java/java-exception/user-defined-exception.shtml http://www.roseindia.net/java/exceptions/making
exception
defined checked exception ââ?¬Å?InvalidCharcterFoundExceptionââ?¬Â? and creater a block of codes that will handle the exception
ModuleNotFoundError: No module named 'django-user-defined-fields'
ModuleNotFoundError: No module named 'django-user-defined-fields'  Hi...: No module named 'django-user-defined-fields' How to remove the ModuleNotFoundError: No module named 'django-user-defined-fields' error? Thanks
ModuleNotFoundError: No module named 'django-user-defined-fields'
ModuleNotFoundError: No module named 'django-user-defined-fields'  Hi...: No module named 'django-user-defined-fields' How to remove the ModuleNotFoundError: No module named 'django-user-defined-fields' error? Thanks
ModuleNotFoundError: No module named 'mkdocs-user-defined-values'
ModuleNotFoundError: No module named 'mkdocs-user-defined-values'  Hi...: No module named 'mkdocs-user-defined-values' How to remove the ModuleNotFoundError: No module named 'mkdocs-user-defined-values' error? Thanks
ModuleNotFoundError: No module named 'pyjxslt-user-defined-address'
ModuleNotFoundError: No module named 'pyjxslt-user-defined-address'  ...: No module named 'pyjxslt-user-defined-address' How to remove the ModuleNotFoundError: No module named 'pyjxslt-user-defined-address' error
ModuleNotFoundError: No module named 'sorl-defined-thumbnail'
ModuleNotFoundError: No module named 'sorl-defined-thumbnail'  Hi...: No module named 'sorl-defined-thumbnail' How to remove the ModuleNotFoundError: No module named 'sorl-defined-thumbnail' error? Thanks   Hi
ModuleNotFoundError: No module named 'sorl-defined-thumbnail'
ModuleNotFoundError: No module named 'sorl-defined-thumbnail'  Hi...: No module named 'sorl-defined-thumbnail' How to remove the ModuleNotFoundError: No module named 'sorl-defined-thumbnail' error? Thanks   Hi
exception
arguments are not equalto two,throw a user defined exception "invalid parameter exception" ,otherwise display the two parameters.   Here is an example... is not equal to two then invalid parameter exception is thrown ,otherwise display the two
ModuleNotFoundError: No module named 'exception'
ModuleNotFoundError: No module named 'exception'  Hi, My Python... 'exception' How to remove the ModuleNotFoundError: No module named '... python library, ModuleNotFoundError: No module named 'exception' error
Bean
Bean  what is bean? how to use bean   HTML Code: Contents MOBILE STORE HOME PRODUCTS IMAGES COMPANY... { out.println("not correct"); } } catch(Exception e
ModuleNotFoundError: No module named 'python-bean'
ModuleNotFoundError: No module named 'python-bean'  Hi, My Python... 'python-bean' How to remove the ModuleNotFoundError: No module named '... of python-bean python library, ModuleNotFoundError: No module named 'python-bean
ModuleNotFoundError: No module named 'python-bean'
ModuleNotFoundError: No module named 'python-bean'  Hi, My Python... 'python-bean' How to remove the ModuleNotFoundError: No module named '... of python-bean python library, ModuleNotFoundError: No module named 'python-bean
exception
exception  wHEN RUNTIME EXCEPTION CLASS IS SUB OF EXCEPTION CLASS HOW CAN'T HANDLE UNCHECKED EXCEPTION
exception
exception  chek in and check out exception in java   Please visit the following link: Checked and Unchecked Exception
exception
exception  what is the use of catch block even though we have predefined exception object
Exception
Exception  whis is the Arithmetic Exception in java? or define Arithmetic Exception with exp?   Arithmetic Exception occurs, when you divide a number by zero. Example public class TryCatch { public static void main
ModuleNotFoundError: No module named 'exception-notifier'
ModuleNotFoundError: No module named 'exception-notifier'  Hi, My... named 'exception-notifier' How to remove the ModuleNotFoundError: No module named 'exception-notifier' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'exception-template'
ModuleNotFoundError: No module named 'exception-template'  Hi, My... named 'exception-template' How to remove the ModuleNotFoundError: No module named 'exception-template' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'exception-slacker'
ModuleNotFoundError: No module named 'exception-slacker'  Hi, My... named 'exception-slacker' How to remove the ModuleNotFoundError: No module named 'exception-slacker' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'pywe-exception'
ModuleNotFoundError: No module named 'pywe-exception'  Hi, My... named 'pywe-exception' How to remove the ModuleNotFoundError: No module named... the installation of pywe-exception python library, ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'wrap-exception'
ModuleNotFoundError: No module named 'wrap-exception'  Hi, My... named 'wrap-exception' How to remove the ModuleNotFoundError: No module named... the installation of wrap-exception python library, ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'wrapped-exception'
ModuleNotFoundError: No module named 'wrapped-exception'  Hi, My... named 'wrapped-exception' How to remove the ModuleNotFoundError: No module named 'wrapped-exception' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'wrapped-exception'
ModuleNotFoundError: No module named 'wrapped-exception'  Hi, My... named 'wrapped-exception' How to remove the ModuleNotFoundError: No module named 'wrapped-exception' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'wrapped-exception'
ModuleNotFoundError: No module named 'wrapped-exception'  Hi, My... named 'wrapped-exception' How to remove the ModuleNotFoundError: No module named 'wrapped-exception' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'exception-reports'
ModuleNotFoundError: No module named 'exception-reports'  Hi, My... named 'exception-reports' How to remove the ModuleNotFoundError: No module named 'exception-reports' error? Thanks   Hi, In your

Ads