Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting classpath dependency between projects in Eclipse

 
Damodar Wagle
Greenhorn
Posts: 5
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic