myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Rudd (JIRA)" <>
Subject [jira] Commented: (MYFACES-208) faces-config.xml is only found in jar files located in WEB-INF/lib
Date Mon, 25 Apr 2005 21:48:23 GMT
     [ ]
Chris Rudd commented on MYFACES-208:

You must have misunderstood the issue.

When locating faces-config.xml files the code ONLY checks the locations in the web.xml and
for each jar in the WEB-INF/lib directory, a META-INF/faces-config.xml. It does NOT look for
all META-INF/faces-config.xml files on the classpath. If it were it would pickup faces-config.xml
from ANY jar located on the classpath (this allowing components to be installed into the application
server) and in the WEB-INF/classes directory (thus allowing non-jarred web-apps).

I have verified this and checked the code. (1.0.9)

The RI from sun looks for ANY resource META-INF/faces-config.xml, and thus would find any
occurance of it in the classpath. There is no simple way to accomplish loading faces-config
files from application server installed component jars, as the current code treats each of
the locations in the web.xml as a resource location, which would require that A) the web.xml
know about all possible installed compoent jars and B) each jar have its own unique faces-config.xml

> faces-config.xml is only found in jar files located in WEB-INF/lib
> ------------------------------------------------------------------
>          Key: MYFACES-208
>          URL:
>      Project: MyFaces
>         Type: Bug
>  Environment: Fedora Core 3
> JBoss/Jetty 3.2.1
>     Reporter: Chris Rudd
>     Priority: Blocker

> When scaning for faces-config.xml files it currently only looks for them inside the jars
of WEB-INF/lib. 
> The RI scans the classpath via a getResources("META-INF/faces-config.xml").
> Im not sure which is correct, but it seems the RI's method is better as it allows the
config files to exist in the WEB-INF/classes dir as well as allow JSF components and such
to be installed into the container (thus shared will all apps).

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message