Solved

Spring Dependency Injection "BeanCreationException"

Posted on 2011-02-14
2
2,025 Views
Last Modified: 2012-05-11
Hi,

I am getting this error

com.bea.core.repackaged.springframework.beans.factory.BeanCreationException: Error creating bean with name "xxx" Initialization of bean failed; nested exception is com.bea.core.repackaged.springframework.beans.factory.BeanCreationException: Dependency injection failure: can't find the bean definition about class class com.db.nexclear.security.WebServiceUserSecurityProvider; nested exception is com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type

Any ideas what could be causing this?
0
Comment
Question by:redahmeid
2 Comments
 
LVL 92

Expert Comment

by:objects
Comment Utility
sounds like you have 2 beans of the same type, so it cannot determine which one to autowire into one of your beans. You need to explicitly specify which one.
0
 
LVL 5

Accepted Solution

by:
josephtsang earned 500 total points
Comment Utility
can't find the bean definition about class class com.db.nexclear.security.WebServiceUserSecurityProvider;

Did you check if the library is visible by the spring classloader you've set up?
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now