Solved

Spring Dependency Injection "BeanCreationException"

Posted on 2011-02-14
2
2,142 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 92

Expert Comment

by:objects
ID: 34891929
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
ID: 35165566
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

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

617 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