• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to refer web project from ejb project

 
Kulbhushan Azad
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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

Thanks a lot in advance
 
Ankit Garg
Sheriff
Posts: 9509
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I don't how this would be possible but I would say that this is a very weird situation and I think you should think about redesigning your application a bit...
 
Raf Szczypiorski
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic