2)I am placing WEB-INF/lib outside war in common.jar (EAR classloader level) but war can not find the required classes from coomon.jar
You will have to add the following entry to application.xml file which is present in the META-INF directory:
<module> <java>Common.jar</java> </module>
I have placed this code inside the applicaton.xml.Even then i am getting noclassdefnfound error.
Post the exception stacktrace that you are seeing(Use the code button to wrap the contents in Code block, while posting)
My application is gwt based.And placing gwt-user.jar outside web-inf/lib causes noclassdeffound for gwt classes.I have placed this jar inside the web-inf/lib.It works now.
I have not found answer to my other questions.Please reply.
You might need to set the classpath in the META-INF/MANIFEST.MF for the war lists all the jars that web app needs. This is what we do, but we don't use a "common.jar" to include all the libs and dependent jars.