0

我正在运行 JBoss 6.1 EAP,其中一个默认模块有自己的 org/omg/CORBA/ORB.class 文件版本,我想为该文件使用我自己的 jar。我已经尝试将它包含在我的应用程序的战争文件中,但它仍在从 JBoss 模块中获取一个。

那么问题来了,JBoss 中模块的加载顺序是什么,我该如何改变呢?

4

1 回答 1

3

您需要在您的工件中包含一个jboss-deployment-structure.xml文件,并配置该文件以排除容器的 CORBA impl。

下面是一个将排除 log4j 的示例

<jboss-deployment-structure>
    <deployment>
        <!-- Exclusions allow you to prevent the server from automatically adding some dependencies -->
        <exclusions>
            <module name="org.apache.log4j" />
        </exclusions>
    </deployment>
</jboss-deployment-structure>
于 2013-08-28T13:06:28.360 回答