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

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

问题描述

我想在 JBoss 4.2 中部署一个 war,但我无法控制它的目录,所以我不能替换 jsf-impl.jarjsf-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.

我的问题是:如何配置war以依赖于war中导出的jsf-impl.jarjsf-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 和更新版本,您可以通过将以下上下文参数添加到 web 应用程序的 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天全站免登陆