I am using websphere 6.0 and i have to add a new stateless session bean in the ejb module which needs to access the existing business logic classes present in WEB project of the same EAR.
I am using RSA as the IDE for the development and added the webproject in the buildpath as a "required projects on the build path" entry. The application compiles fine . However , when i try to access the bean with local or remote client then its giving error as
java.lang.NoClassDefFoundError for the same reference class of web project which was used in the bean.
Please tell me where do i need to add the reference of this particular webproject class in order to correct this problem
When you want to be able to access classes in both modules in an EAR, you put it in a separate jar file in a lib subdirectory. You can change the name of this directory in application.xml using the <library-directory> element. Check if this works for you.
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: How to refer web project from ejb project