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

ejb deployment issue : classnotfound error for other ejb references

 
ravi singasani
Greenhorn
Posts: 6
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two EJB jars packaged into a EAR. say EJb1.jar and Ejb2.jar. I am deploying it in WebSphere 7.0. Ejb1 is referencing to classes in Ejb2.jar. Unless I specify the Ejb2.jar in Manifest.MF file of Ejb1.jar, the deployment of EAR file fails.

Throws error that build path is incomplete and that referenced class is not found.I see the current EAR setup working fine with my other team members and other development environments.

Is there any configurable change I can do ? at WebSphere console ? To make it ignore the reference issues ?

I have too many ejb's in this ear referencing each other. It makes things really difficult to update manifest file each time we make code changes.

Any ideas ?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34423
347
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would you need to update it each time you make code changes? The ejb reference is changed once per ejb, not once per code change.

You really should correct the manifests to guarantee the code will deploy going forward.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic