facebook

EAR and dependant librairies

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #320164 Reply

    aliapo
    Member

    Hi,

    We are in the process of migrating from RAD and we have noticed a small difference between RAD and MEB in the packaging of the EAR file in one of our project.
    In RAD the required libraries are copied in lib folder of the EAR, but with MEB it is copied twice in root folder and lib folder of the EAR file.
    We have tried all possible combinations of deployment of the EAR but we always get the required libraries copied in two places (root and lib).
    The workspace was not created from scratch but migrated using “Enhance RAD Project…”

    Our workspace has 3 projets:

    
    -RPMEAR (references RPMSrv and RPMWeb)
       |__lib/
              antlr-2.7.6.jar,....
    -RPMSrv (classpath includes RPMEAR/lib/*.jar) 
    -RPMWeb (references RPMSrv and classpath includes RPMEAR/lib/*.jar) 
       |_WebContent
               |_META-INF
                    |_MANIFEST.MF (contains references to RPMSrv.jar and jars in RPMEAR/lib)
    

    To test the packaging of the EAR file, I use export Java EE->EAR file(MyEclipse) then I unzip the EAR file. It is the same structure of the EAR file that is deployed in Websphere.
    Because the EAR file is bigger (two times the required libraries) the deployment takes more time.

    We can put required libraries in RPMWeb/WebContent/WEB-INF/lib but RPMSrv needs them also.
    We also experienced creating a test Java EE project from scratch (not migrated) and it works as expected, required libraries are copied only once in lib folder.

    Thank you.

    #320186 Reply

    support-swapna
    Moderator

    aliapo ,

    Please take a look at the Advanced Features section in this link for detailed info about library deployment policies in EAR projects:
    http://www.myeclipseide.com/documentation/quickstarts/earprojects/

    Let us know how it works for you.

    #320213 Reply

    aliapo
    Member

    Hi Swapna,

    I already read this tutorial and I could not find a way to have the required libraries copied only in lib folder of the EAR file.
    To reproduce the problem I migrated the EJB 3.0 Counter sample application from RAD 7.5.5 and added to it a java project (logging) with a dependency on a external jar (aopalliance-1.0.jar).
    The result is aopalliance-1.0.jar is copied in the root of the EAR even if it is already in the lib folder.

    Attached is the workspace for the projects.

    Thank you.

    Attachments:
    You must be logged in to view attached files.
    #320231 Reply

    support-swapna
    Moderator

    aliapo ,

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

    #320576 Reply

    aliapo
    Member

    Hi Swapna,

    Did you get any feedback from the DEV team ?

    Thank you

    #320714 Reply

    support-tony
    Keymaster

    aliapo,

    Sorry for the delay in responding. We have managed to replicate the problem but, due to risks if we try to get the fix into the next release (10.0), which is due very soon, we’ve had to delay addressing this until after 10.0.

    Sorry for the inconvenience.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: EAR and dependant librairies

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