This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes spring bean containing to different project : not getting instantiated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "spring bean containing to different project : not getting instantiated" Watch "spring bean containing to different project : not getting instantiated" New topic
Author

spring bean containing to different project : not getting instantiated

Joshua Antony
Ranch Hand

Joined: Jun 05, 2006
Posts: 254

A spring bean is declared in the configuration file as shown above.

I am using Eclipse IDE,com.test.CommonDAOImpl is in different project with respect to applicationContext.xml containing the above declaration.

During execution I get error like
Exception in thread "main" org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'commonDAO' is defined

However if I use any bean from the same project, it works.

How to solve this issue?

Regards,
Joshua


SCJP,SCWCD, Into ATG now!
Joshua Antony
Ranch Hand

Joined: Jun 05, 2006
Posts: 254
The other project is in the classpath of the project containing applicationContext.xml
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: spring bean containing to different project : not getting instantiated
 
It's not a secret anymore!