Why some libs are kept in EAR/lib and some just in EAR/ ?
I've noticed that if I put jboss-el.jar in EAR/lib then I do not have to include it in war/META-INF/MANIFEST.MF.
If I have EAR/jboss-el.jar and no entry in war/META-INF/MANIFEST.MF I get NoClassDefFoundError.
If I have EAR/jboss-el.jar and include it in Class-Path in war/META-INF/MANIFEST.MF then everything is fine.
What's the magic with EAR/lib ?
We recommend you use lib/ always, as it really simple. However Eclipse WTP doesn't support this, so they have to use the MANIFEST scheme