Are you asking which jar files to include in the EAR or where to include these jar files?
Which version of which jar file to include actually depends on your application code. Either you or the person who built the application will be able to tell which jar files are required.
thanks for the reply.
yea, i mean the library jar files that need to be included in the EAR archive. I am confusing on what jar files need to be put in WEB-INF/lib folder, and what jar files need to be put in the EAR archive.
it's simply a matter of classloading.
If you put files in the WEB-INF/lib dir they will be visible only to the web application. Good if these lib are only needed by the webapp
On the other hand if you need the jar file for the WHOLE enterprise application put it in the ear file.