如何配置战争依赖于战争中导出的库而不是服务器中的库? [英] How to configure a war in order to depends on the exported libraries in the war instead of the libraries from the server?

查看:93
本文介绍了如何配置战争依赖于战争中导出的库而不是服务器中的库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在JBoss 4.2中部署一个战争,但是我无法控制它的目录,所以我不能替换 jsf-impl.jar jsf-api.jar

I want to deploy a war in a JBoss 4.2 but I don't have control over its dir, so I can't replace the jsf-impl.jar and jsf-api.jar.

我的问题是:如何配置战争以取决于 jsf-impl.jar jsf-api.jar 在战争中导出而不是从服务器中导出这些库?

My question is: How to configure the war in order to depends on the jsf-impl.jar and jsf-api.jar exported in the war instead of this libraries from the server?

推荐答案

这取决于所使用的服务器。对于JBoss 4.2及更新版本,您可以通过将以下上下文参数添加到webapp的 web.xml 来实现。

That depends on the server used. For JBoss 4.2 and newer, you can do that by adding the following context parameter to the webapp's web.xml.

<context-param>
     <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
     <param-value>true</param-value>
</context-param>

这篇关于如何配置战争依赖于战争中导出的库而不是服务器中的库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆