org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [org.springframework.transaction.PlatformTransactionManager] is defined: expected single matching bean but found 18: transactionManagerSite-39,transactionManagerSite-18,transactionManagerSite-19,transactionManagerSite-34,transactionManagerSite-25,transactionManagerSite-36,transactionManagerSite-1,transactionManagerSite-10,transactionManagerSite-21,transactionManagerSite-32,transactionManagerSite-2,transactionManagerSite-11,transactionManagerSite-22,transactionManagerSite-33,transactionManagerSite-3,transactionManagerSite-4,transactionManagerSite-40,transactionManagerSite-8

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Spring JIRA by Franz Neumann, 1 year ago
No qualifying bean of type [org.springframework.transaction.PlatformTransactionManager] is defined: expected single matching bean but found 18: transactionManagerSite-39,transactionManagerSite-18,transactionManagerSite-19,transactionManagerSite-34
via Stack Overflow by rpfujiw
, 1 year ago
No qualifying bean of type [org.springframework.transaction.PlatformTransactionManager] is defined: expected single matching bean but found 3: transactionManagerSqlServer,transactionManagerDB2,transactionManagerSqlServer2
via Stack Overflow by Harmeet Singh Taara
, 2 years ago
No qualifying bean of type [org.springframework.transaction.PlatformTransactionManager] is defined: expected single matching bean but found 2: transaction_manager,secure_transaction_manager
via blogspot.no by Unknown author, 1 year ago
No qualifying bean of type [org.springframework.transaction.PlatformTransactionManager] is defined: expected single matching bean but found 2: transaction_manager,secure_transaction_manager
via Stack Overflow by Harmeet Singh Taara
, 2 years ago
No qualifying bean of type [org.springframework.transaction.PlatformTransactionManager] is defined: expected single matching bean but found 2: neo4jTransactionManager,jtaTransactionManagerFactoryBean
via GitHub by leninayya
, 2 years ago
No qualifying bean of type [org.springframework.transaction.PlatformTransactionManager] is defined: expected single matching bean but found 4: aTransaction,bTransaction,transactionManager,cTransaction
org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [org.springframework.transaction.PlatformTransactionManager] is defined: expected single matching bean but found 18: transactionManagerSite-39,transactionManagerSite-18,transactionManagerSite-19,transactionManagerSite-34,transactionManagerSite-25,transactionManagerSite-36,transactionManagerSite-1,transactionManagerSite-10,transactionManagerSite-21,transactionManagerSite-32,transactionManagerSite-2,transactionManagerSite-11,transactionManagerSite-22,transactionManagerSite-33,transactionManagerSite-3,transactionManagerSite-4,transactionManagerSite-40,transactionManagerSite-8
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:368)
at org.springframework.transaction.interceptor.TransactionAspectSupport.determineTransactionManager(TransactionAspectSupport.java:366)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:270)
at mypackagewebapp.spring.integration.ExportHandlerAdvice.doInvoke(ExportHandlerAdvice.java:69)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at com.sun.proxy.$Proxy34.handleRequestMessage(Unknown Source)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
33 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
5 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.