MyEclipse: howto includ MANIFEST in EJB-jar file? dstahl - Jan 23, 2006 - 05:14 PM Post subject: howto includ MANIFEST in EJB-jar file?
Hi,
I'm struggling while trying to deploy a EJB inside a EAR.
I do get NoClassDefFoundException. This is because of a missing MANIFEST.MF file in the ejb-jar. When I manually add the manifest with the class path, everything is fine. But for the automated EAR deployment using MyEclipseIde the manifest file is missing.
What properties have to be set in order to get the manifest into the deployable?
many thanks in advance,
Dirksupport-greg - Jan 24, 2006 - 12:35 AM Post subject:
Do you have a MANIFEST.MF file in your src/META-INF directory? That should be packaged in the ejb jar in the META-INF directory inside your ejb jar.dstahl - Jan 31, 2006 - 01:30 PM Post subject:
greg,
yes I do have it in the src/META-INF directory ...it is just beside the ejb-jar.xml file, which is copied...but not the MANIFEST.MF :(
any idea? thanks, Dirksupport-greg - Jan 31, 2006 - 06:10 PM Post subject:
Can you post your configuration summary available from the menu: MyEclipse > About MyEclipse > Configuration Summary....
Also, if you are trying to and any third party libraries in your EJB and have them be on the classpath in your EAR, take a look at Section 9 of the Deployment Quickstart. It describes how to generate a MANIFEST.MF files in your EAR and EJB project that will put all of your jars in your EJB project on the classpath during deployment.
http://www.myeclipseide.com/images/tutorials/quickstarts/earprojects/