No, you cannot do that. The
Java EE spec states that nothing outside a WAR can have access to things inside a WAR. the correct way to fix this is move the common resources outside the WAR and place them into a JAR in the EAR.
The incorrect way to kludge this is to change the useJBossWebLoader and java2ClassLoadingCompliance properties of the WarDeployer bean in the
server/xxx/deployers/jbossweb.deployer/META-INF/war-deployers-jboss-beans.xml file. Be aware that making this change can lead to some surprises.