Jboss5.1GA has a wrong default setting. It means different EARs will cross-reference by default setting. If you have two EARs. One EAR use MAT-1.0.jar, by another use MAT-1.1.jar. The first started EAR will correct, but the last started EAR will wrong.
Please refer to https://jira.jboss.org/jira/browse/JBAS-7371
Here, I copy important content
This seems related to JBAS-7032. You should enable isolated ear deployment either through the use of classloader configuration in jboss-app.xml or by setting "isolated" = true in JBOSS_HOME/server/servername/deployers/ear-deployer-jboss-beans.xml in the following section:
<bean name="EARClassLoaderDeployer" class="org.jboss.deployment.EarClassLoaderDeployer">
<!-- A flag indicating if ear deployments should have their own scoped
class loader to isolate their classes from other deployments.
-->
<property name="isolated">false</property>
</bean>
Starting JBoss AS 5.2 Beta, this property will be set to true by default, so you won't run into such issues.
本文介绍JBoss 5.1 GA版本中默认设置可能导致不同EAR文件互相引用的问题,并提供了解决方案,包括如何通过配置实现EAR部署的隔离。
5453

被折叠的 条评论
为什么被折叠?



