facebook

JAR being referenced by WAR required in EAR

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    kalichar
    Member

    I have an EAR project MyEAR that bundles MyWeb and MyCommons projects. The MyWeb project uses the code in MyCommons project which is a simple java project. When I build the EAR project, the MANIFEST-MF entry in the MyWeb WAR does not contain an entry for the MyCommons.jar file that is present in MyEAR.ear. Other jars that are placed in MyEAR project such as log4j.jar are all present in the MANIFEST file for the MyWEB.war when deployed.

    What am I missing? Thanks

    #251705

    kalichar
    Member

    If I can be more specific:
    – MyEAR
    – log4j.jar
    – MyCommons
    – MyWeb

    When MyEAR.ear is deployed it contains MyCommons.jar, MyWeb.jar, log4.jar. However, the MANIFEST file in MyWeb.WAR contains only log4j.jar. I am trying to get it to contain MyCommons.jar as well. Thanks

    #251715

    Riyad Kalla
    Member

    Is your setup as follows:

    
    + MyEAR Project
       + MyWeb Project (MODULE)
          + MyCommon (DEPENDENCY of MyWeb Project)
    

    Or are you packaging MyCommon manually and dropping it into the root of your EAR?

    #251716

    kalichar
    Member

    I am not manually building MyCommon.jar and placing it in MyEAR Project. MyWebProject as you mention has a dependency to MyCommon project. When the EAR build, the MyCommon.jar is being placed by MyEclipse deploy tool inside the EAR however, the MANIFEST file of the MyWeb EAR is missing the entries for MyCommon.jar

    #251828

    Mustafa M
    Member

    did you try right-click on the EAR project, choose MyEclipse > New Module Manifests. Make sure that the dependency projects to the EAR’s project reference path.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: JAR being referenced by WAR required in EAR

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