This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
As my common.war has some common reusable jsp,jsf xhtml which are used by other module wars. I want those common reusable resources available in common.war to be accessible from other module wars inside same ear.
I don't want to copy those resurnce to each module as I have lot of files.
I thought I would be able to make it work by changing <property name="useJBossWebLoader">false</property> to true in jboss configuration file. I tried it in jboss 4 as well as jboss 5 "default" folder.
What you are trying to do goes against the servlet spec - each WAR should live in isolation and outside classes should not have access to the contents of a WAR.
You already found the option that lets you share classes between WARs.
One way to solve this dilemma is to properly package your apps. For example, you can still maintain 3 source projects (common, module1 and module2) to promote code sharing and reuse. Then have your packaging script combine common+module1 and common+module2.