No clues to preventing this or what is wrong with the jboss-classloading.xml above?
Which version of JBoss AS? You don't need those config files since .war deployments are isolated by default (as mandated by spec). Is this a clean JBoss installation? Also can you post the relevant details which show that the class from the other war is being picked up?