You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Chris Rudd (JIRA)" <my...@incubator.apache.org> on 2005/04/25 23:48:23 UTC
[jira] Commented: (MYFACES-208) faces-config.xml is only found in jar files located in WEB-INF/lib
[ http://issues.apache.org/jira/browse/MYFACES-208?page=comments#action_63706 ]
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 filename.
> faces-config.xml is only found in jar files located in WEB-INF/lib
> ------------------------------------------------------------------
>
> Key: MYFACES-208
> URL: http://issues.apache.org/jira/browse/MYFACES-208
> 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:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira