wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Setting classpath dependency between projects in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Setting classpath dependency between projects in Eclipse" Watch "Setting classpath dependency between projects in Eclipse" New topic
Author

Setting classpath dependency between projects in Eclipse

Damodar Wagle
Greenhorn

Joined: May 18, 2011
Posts: 5

Hi,
I am trying to inject instance of class "SaveCardInfoDAO" into ejb method "insertCardInfo". Following are the code snippets.
Controller (Stateless session bean) in Project 1



ApplicationUtil class (that initializes the Application context) required in above code is in Project 2.



applicationContext.xml is in Project2



SaveCardInfoDAO class whose instance is to be inserted in the first code snippet is in Project 3.



Project 1 has dependency on project 2 and project 3.
Project 3 has dendency on Project 2.
I am using Eclipse and all these projects are eclipse projects.

When I run my client this gives me following error.
javax.ejb.EJBTransactionRolledbackException: EJB Exception: : java.lang.NoClassDefFoundError: com/fedex/ccs/util/ApplicationUtil
at com.fedex.ccs.ejb.session.Controller.insertCardInf o(Controller.java:44)

Please help me resolve this issue. Let me know if you need something else.

Regards
Damodar
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

This isn't a Spring question. You have an issue with your classpath configuration in Eclipse between projects.

Moving this to the IDE forum.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Setting classpath dependency between projects in Eclipse
 
Similar Threads
Spring AOP and AspectJ Integration with EJB3
Execption in AOP Logging Program Issue
unable to call AOP method
Spring AOP with mvc
Spring AOP aspect not working.