facebook

howto includ MANIFEST in EJB-jar file?

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #245036 Reply

    dstahl
    Member

    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,
    Dirk

    #245098 Reply

    Greg
    Member

    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.

    #245736 Reply

    dstahl
    Member

    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, Dirk

    #245767 Reply

    Greg
    Member

    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/

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: howto includ MANIFEST in EJB-jar file?

You must be logged in to post in the forum log in