JSF config files in a location diferent from WEB-INF. Please answer me....

Hi all,

I need to put my jsf config files in locations diferents from WEB-INF, for example inside of my class packages. I try to specify this in web.xml but it don't work. What i'm doing wrong?

See my web.xml configuration here:

<context-param>

<param-name>javax.faces.CONFIG_FILES</param-name>

<param-value>/WEB-INF/clases/core/web/faces-config.xml</param-value>

</context-param>

I have test the following configuration too, but nothing:

<context-param>

<param-name>javax.faces.CONFIG_FILES</param-name>

<param-value>classpath:core/web/faces-config.xml</param-value>

</context-param>

I need help.

Message was edited by:

maykell

Message was edited by:

maykell

[850 byte] By [maykella] at [2007-11-26 15:02:10]
# 1
JSF won't pick up faces-config.xml files from the ClassPath. Please review the specification on how the JSF implementation much search and process them.Additionally, feel free to log a feature enhancement here: https://javaserverfaces.dev.java.net/issues
rlubkea at 2007-7-8 8:51:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

According to the JSF 1.2 p. 305:

javax.faces.CONFIG_FILES -- Comma-delimited list of context-relative resource

paths under which the JSF implementation will look for application configuration

resources (see Section 10.4.3 揂pplication Configuration Resource Format?, before

loading a configuration resource named ?WEB-INF/faces-config.xml?(if such a

resource exists).

So, I think the former should work fine.

Jacek

JacekLaskowskia at 2007-7-8 8:51:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...