Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Spring Dependency Injection "BeanCreationException"

Posted on 2011-02-14
2
Medium Priority
?
2,226 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
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 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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 …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

824 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