在JBoss中,您可以在WEB-INF目录中使用jboss-deployment-structure.xml描述符禁用容器管理的库.
<jboss-deployment-structure>
<deployment>
<!-- Exclusions allow you to prevent the server from automatically adding
some dependencies -->
<exclusions>
<!-- This will cause the JBoss container to not provide your deployed
application's log4j dependencies. This way you can use an implementation
deployed with your artifact. -->
<module name="org.apache.log4j" />
</exclusions>
</deployment>
</jboss-deployment-structure>
Run Code Online (Sandbox Code Playgroud)
可以在此处找到JBoss AS 7中的类加载文档.
| 归档时间: |
|
| 查看次数: |
1807 次 |
| 最近记录: |