org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [org.springframework.transaction.PlatformTransactionManager] is defined: expected single matching bean but found 2: ticketTransactionManager,jpaAuditTrailLoggingTransactionManager

GitHub | zsoltii | 11 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    more transactionManager problem with CAS 4.2.3 version

    GitHub | 11 months ago | zsoltii
    org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [org.springframework.transaction.PlatformTransactionManager] is defined: expected single matching bean but found 2: ticketTransactionManager,jpaAuditTrailLoggingTransactionManager
  2. 0

    GitHub comment 1850#228690529

    GitHub | 11 months ago | lsenecaux
    org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [org.springframework.transaction.PlatformTransactionManager] is defined: expected single matching bean but found 2: inspektrAuditTransactionManager,transactionManagerServiceReg
  3. 0

    Spring boot webapp with two JPA databases

    Stack Overflow | 3 years ago | achingfingers
    org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [org.springframework.transaction.PlatformTransactionManager] is defined: expected single matching bean but found 2: transactionManager,osm.transactionManager
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring-Data-Neo4j: org.springframework.beans.factory.NoUniqueBeanDefinitionException

    Stack Overflow | 2 years ago | Harmeet Singh Taara
    org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [org.springframework.transaction.PlatformTransactionManager] is defined: expected single matching bean but found 2: neo4jTransactionManager,jtaTransactionManagerFactoryBean
  6. 0

    expected single matching bean but found 2: transactionManager1,transactionManager

    Stack Overflow | 2 years ago | Ajaykumar Kadam
    org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [org.springframework.transaction.PlatformTransactionManager] is defined: expected single matching bean but found 2: transactionManager1,transactionManager

  1. batwalrus76 2 times, last 5 months ago
  2. Pilleo 33 times, last 7 months ago
7 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.springframework.beans.factory.NoUniqueBeanDefinitionException

    No qualifying bean of type [org.springframework.transaction.PlatformTransactionManager] is defined: expected single matching bean but found 2: ticketTransactionManager,jpaAuditTrailLoggingTransactionManager

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean()
  2. Spring Beans
    DefaultListableBeanFactory.getBean
    1. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:366)
    2. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:332)
    2 frames
  3. Spring Tx
    TransactionInterceptor.invoke
    1. org.springframework.transaction.interceptor.TransactionAspectSupport.determineTransactionManager(TransactionAspectSupport.java:367)
    2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:271)
    3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    3 frames
  4. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
    2 frames
  5. com.sun.proxy
    $Proxy240.createTicketGrantingTicket
    1. com.sun.proxy.$Proxy240.createTicketGrantingTicket(Unknown Source)
    1 frame
  6. Jasig CAS Core
    AuthenticationViaFormAction$AjcClosure1.run
    1. org.jasig.cas.web.flow.AuthenticationViaFormAction.createTicketGrantingTicket(AuthenticationViaFormAction.java:205)
    2. org.jasig.cas.web.flow.AuthenticationViaFormAction.submit_aroundBody0(AuthenticationViaFormAction.java:96)
    3. org.jasig.cas.web.flow.AuthenticationViaFormAction$AjcClosure1.run(AuthenticationViaFormAction.java:1)
    3 frames
  7. AspectJ runtime
    JoinPointImpl.proceed
    1. org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    1 frame
  8. org.jasig.inspektr
    TraceLogAspect.traceMethod
    1. org.jasig.inspektr.aspect.TraceLogAspect.traceMethod(TraceLogAspect.java:44)
    1 frame
  9. Jasig CAS Core
    AuthenticationViaFormAction.submit
    1. org.jasig.cas.web.flow.AuthenticationViaFormAction.submit(AuthenticationViaFormAction.java:86)
    1 frame
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  11. Spring Expression Language (SpEL)
    SpelExpression.getValue
    1. org.springframework.expression.spel.support.ReflectiveMethodExecutor.execute(ReflectiveMethodExecutor.java:113)
    2. org.springframework.expression.spel.ast.MethodReference.getValueInternal(MethodReference.java:129)
    3. org.springframework.expression.spel.ast.MethodReference.access$000(MethodReference.java:49)
    4. org.springframework.expression.spel.ast.MethodReference$MethodValueRef.getValue(MethodReference.java:342)
    5. org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:88)
    6. org.springframework.expression.spel.ast.SpelNodeImpl.getTypedValue(SpelNodeImpl.java:131)
    7. org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:299)
    7 frames
  12. Spring Binding
    SpringELExpression.getValue
    1. org.springframework.binding.expression.spel.SpringELExpression.getValue(SpringELExpression.java:84)
    1 frame
  13. Spring Web Flow
    FlowHandlerAdapter.handle
    1. org.springframework.webflow.action.EvaluateAction.doExecute(EvaluateAction.java:75)
    2. org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:188)
    3. org.springframework.webflow.execution.AnnotatedAction.execute(AnnotatedAction.java:145)
    4. org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:51)
    5. org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:101)
    6. org.springframework.webflow.engine.State.enter(State.java:194)
    7. org.springframework.webflow.engine.Transition.execute(Transition.java:228)
    8. org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:395)
    9. org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214)
    10. org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:116)
    11. org.springframework.webflow.engine.Flow.handleEvent(Flow.java:547)
    12. org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:390)
    13. org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210)
    14. org.springframework.webflow.engine.ViewState.handleEvent(ViewState.java:231)
    15. org.springframework.webflow.engine.ViewState.resume(ViewState.java:195)
    16. org.springframework.webflow.engine.Flow.resume(Flow.java:537)
    17. org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:259)
    18. org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:169)
    19. org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:228)
    19 frames
  14. Spring MVC
    FrameworkServlet.doPost
    1. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
    2. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
    3. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
    4. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
    4 frames
  15. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
    1 frame
  16. Spring MVC
    FrameworkServlet.service
    1. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
    1 frame
  17. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    1 frame
  18. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  19. Tomcat WS
    WsFilter.doFilter
    1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    1 frame
  20. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  21. org.apereo.cas
    ResponseHeadersEnforcementFilter.doFilter
    1. org.apereo.cas.security.ResponseHeadersEnforcementFilter.doFilter(ResponseHeadersEnforcementFilter.java:238)
    1 frame
  22. Spring
    DelegatingFilterProxy.doFilter
    1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
    2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
    2 frames
  23. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  24. org.apereo.cas
    RequestParameterPolicyEnforcementFilter.doFilter
    1. org.apereo.cas.security.RequestParameterPolicyEnforcementFilter.doFilter(RequestParameterPolicyEnforcementFilter.java:261)
    1 frame
  25. Spring
    DelegatingFilterProxy.doFilter
    1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
    2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
    2 frames
  26. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  27. org.jasig.inspektr
    ClientInfoThreadLocalFilter.doFilter
    1. org.jasig.inspektr.common.web.ClientInfoThreadLocalFilter.doFilter(ClientInfoThreadLocalFilter.java:62)
    1 frame
  28. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  29. Spring
    DelegatingFilterProxy.doFilter
    1. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    3. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
    4. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
    4 frames
  30. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
    8. org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
    9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
    10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
    10 frames
  31. Grizzly HTTP
    NioEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
    3. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
    4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
    4 frames
  32. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    2 frames
  33. Tomcat Util
    TaskThread$WrappingRunnable.run
    1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    1 frame
  34. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame