permaculture playing cards*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: spring bean containing to different project : not getting instantiated
 
Similar Threads
MSSQL Server datasource wont commit
No suitable driver Error in Test Class
Using SPRING hibernate and JDBC templates in the same DAO
Spring sample applications - Need Help
DWR and JdbcTemplate