facebook

EAR libraries container does not update

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #324388 Reply

    reno
    Member

    Hi,

    I am trying desperately to get the jars from the Manifest.mf /Class-path entries to show up in the EAR libraries container but it won’t do it.

    Have made a standard Ear project, a standard Ejb project and a standard web project.
    -Added jar files in EAR/lib folder : it does not show on the ejb module classpath
    -Used ‘new module manifest’ on th ear, that creates empty manifest.
    -Tried ‘Update ear libraries’, no effect-
    – wrote the jar name manually on the manifest/class-path, it does not show under EAR libraries container.

    Tries both with myeclipse 9 and 10, trial version.

    What am I doing wrong ????

    #324427 Reply

    support-swapna
    Moderator

    reno ,

    I have escalated it to a dev team member. They will get back to you.
    Sorry for the inconvenience.

    #324446 Reply

    reno,

    -You dont need to add any jars in EAR’s MANIFEST.MF.

    -Any module that wants to use a jar from EAR’s libraries needs to reference the jar in module MANIFEST.MF like:
    Class-Path: lib/TheJarNameHere.jar

    That should make it work at server side.
    You can skip adding a jar to WEB module’s MANIFEST.MF, then it will be packaged into WEB project’s lib directory in case you add the jar to WEB module’s Java buildpath as described below.

    Now to resolve it at IDE (compilation) side:
    Right-click on you module project that requires an EAR library, select “properties”->”Java Buildpath”->”Libraries”->”Add jars” and select the EAR’s jar to add it to the module’s classpath.

    We’re going to make this process more intuitive in MyEclipse 11 so you dont have to add the same jar twice.

    Best regards,
    Denis.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: EAR libraries container does not update

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