Solved

Spring Dependency Injection "BeanCreationException"

Posted on 2011-02-14
2
2,096 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What's wrong with this code? 4 46
how to debug htl and js pages 8 79
Is there a simpler dropbox system? 10 53
Need Help! Getting a syntax error and don't understand why 3 55
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
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…
This video teaches viewers about errors in exception handling.
Suggested Courses

734 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