I’ve just started using MyEclipse for a couple of weeks. Now I’m having some trouble with my EAR project, which has 2 components, ejb project and web project. The problem is for this ejb project, which depends on another 2 jar files which have a lot of APIs used by this ejb project.
In MyEclipse, of course I added these 2 jar files in the Build-Path to make the compiler happy. For runtime, the only way I can think about is to copy the 2 jar files directly under EAR project (or subfolder like lib or something, depending on what I put in the MANIFEST.MF), and put the entry CLASS-PATH of its MANIFEST.MF. Then deployed the EAR project. I verified the deployed EAR file, everything looks ok, including those 2 jar files. But once I run, always get NoClassFound exception. In other words, those 2 jar files are not properly used, even it looks like they are properly deployed there.
I searched this forum, and always got the answer with the section 9 of the following: http://www.myeclipseide.com/images/tutorials/quickstarts/earprojects/. But, what that section talks about is how to use Project Reference, while my ejb project is not dependant on another existing project, but just jar files.
I think this is pretty common problem. Anyone can help me out with this issue?
Thanks a lot,
yaoming