Put your library .jar in a directory called "lib" at the top-level of the .ear. Any .jars in there are
automatically made visible to all modules (ejb-jars, .wars, Application Clients) in the application.
myapps.ear
|--lib
|----mylibrary.jar
|----anotherlibrary.jar
fooejb.jar
foowar.war
A library .jar is not considered a Java EE module so it's not specified in application.xml.
The <java> element is for Application Client modules.
[Message sent by forum member 'ksak' (ksak)]
http://forums.java.net/jive/thread.jspa?messageID=277856