• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

How to refer web project from ejb project

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 9708
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic