Conflicting bean definition exception


I am getting the following exception.
Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name ‘cuba_NumberIdSource’ for bean class [com.haulmont.cuba.client.sys.NumberIdSourceClientImpl] conflicts with existing, non-compatible bean definition of same name and class [com.haulmont.cuba.core.sys.NumberIdSourceImpl]

What is this exception? Can you explain me clearly


It basically means that there is something wrong with the spring configuration, especially the bean definition. In order to help you, can you please provide the following information:

  • content of the spring.xml
  • content of the web-spring.xml
  • did you activate any additional addons?
  • which version of CUBA are you using
  • which operating system are you working on?

Most of the information can be fetched if you attach an example project that shows the behavior. So in order to help you it is much easier if you have a running example for the problem.

Yuriy just recently created a topic regarding what information should be provided in a question (see