File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

spring bean containing to different project : not getting instantiated

 
Joshua Antony
Ranch Hand
Posts: 254
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
Joshua Antony
Ranch Hand
Posts: 254
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The other project is in the classpath of the project containing applicationContext.xml
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic