同一Webアプリサーバに、複数のEARをdeployした場合、
- JBoss 4.2は、EAR間で、ClassLoaderを共有する。
- WebSphere 6.1は、EAR間で、ClassLoaderを共有しない。
- WebLogicは、EAR間で、ClassLoaderを共有しない。
なので、JBossではアプリや設定のバグが発見されにくかったりすることもあります。他のWebAPサーバと同じにしましょう。
* EARにスコープClassLoaderをもたせる †
jboss-4.2.3.GA\server\default\deploy\ear-deployer.xml で、
<attribute name="Isolated">true</attribute>
<attribute name="CallByValue">true</attribute>
にする。
参考 : http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/4.2/html/Server_Configuration_Guide/ch02s04s02.html