-->

How to configure a war in order to depends on the

2019-02-26 06:40发布

问题:

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.

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?

回答1:

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>