MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
reno
Post subject: EAR libraries container does not update  PostPosted: Mar 19, 2012 - 02:33 PM
Veteran Member
Veteran Member


Joined: Sep 15, 2005
Posts: 1

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 ????
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Mar 20, 2012 - 12:15 PM



Joined: Nov 11, 2010
Posts: 2491

reno ,

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

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
support-denis
Post subject:   PostPosted: Mar 20, 2012 - 06:33 PM
Registered Member
Registered Member


Joined: Sep 26, 2011
Posts: 30

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.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits