When you deploy two Web applications as Web archives (WARs) into JBoss' deploy folder, you expect them to run independently of each other. But this does not happen.
If you deploy the two Web applications in the above structure, one of them will break. This is because JBoss/Tomcat5 classloading mechanism's class loader is used by all
applicationseven when they are in different WAR files.
The solution is to change the \deploy\jbossweb-tomcat50.sar\META-INF\jboss-service.xml file. If you change the UseJBossWebLoader attribute to false, a different classloader will be used for different WAR files.