Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JBoss doesn't recognize referenced project  RSS feed

 
Erwin Gosal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a session bean that uses a class from an external project. Because the EJB project references that external project (I am using eclipse and it allows a project to reference other projects), every thing seems to be working fine during compilation time. Unfortunately, When I deploy and try to instansiate my bean, JBoss complains that it can't find the referenced class.

Is there any way that I can make the other project visible to JBoss? Am I doing this correctly or you can't refer another project while doing EJB development?

Thanks,
Erwin
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Erwin,

I'm not sure if having one project referring another will ever result in a deployable bean. Not sure if the myeclipse plug in could help you there, but it's worth trying. However if you won't be able to have it working then you have to learn how to pack/deploy common libraries with j2ee applications. This is usually accomplished through manifest files. For example if you have a common library packed within the root of your ear (named common.jar), than you can make it available to your bean simply adding this line to the manifest file (inside of the bean�s jar file):

Regards.
 
Erwin Gosal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it working already.
Thanks for the reply
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!