MyEclipse: EAR libraries container does not update
reno - Mar 19, 2012 - 02:33 PM
Post subject: EAR libraries container does not update
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 ????
support-swapna - Mar 20, 2012 - 12:15 PM
I have escalated it to a dev team member. They will get back to you.
Sorry for the inconvenience.
support-denis - Mar 20, 2012 - 06:33 PM
-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:
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.
All times are GMT - 6 Hours
Powered by PNphpBB2
© 2003-2004 The PNphpBB GroupCredits