You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Anthony Hong (JIRA)" <de...@myfaces.apache.org> on 2006/03/17 08:07:58 UTC

[jira] Created: (MYFACES-1183) Configurations /WEB-INF/faces-config.xml loaded twice

Configurations /WEB-INF/faces-config.xml loaded twice 
------------------------------------------------------

         Key: MYFACES-1183
         URL: http://issues.apache.org/jira/browse/MYFACES-1183
     Project: MyFaces Core
        Type: Bug
  Components: General  
    Versions: 1.1.1    
 Environment: Weblogic 9, Facelets, MyFaces1.1.10
    Reporter: Anthony Hong


I have a JSF configuration file faces-config.xml and put it under /WEB-INF/
In web.xml, setup context-param to load jsf configuration file.
<context-param>
        <param-name>javax.faces.CONFIG_FILES</param-name>
        <param-value>/WEB-INF/faces-config.xml</param-value>
    </context-param>

Then this configuration file will be loaded twice. As /WEB-INF/faces-config.xml will loaded automaticly at first. If I put it in CONFIG_FILES again, it doesn't ignore this file. then phase listener and navigatorHandler has two instances in container which maybe a problem.

-- 
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


[jira] Commented: (MYFACES-1183) Configurations /WEB-INF/faces-config.xml loaded twice

Posted by "Gerald M?llan (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-1183?page=comments#action_12371180 ] 

Gerald Müllan commented on MYFACES-1183:
----------------------------------------

Hm..the two param-values should be in the current svn snapshot in the web.xml of our sandbox examples:

<param-value>/WEB-INF/examples-config.xml,/WEB-INF/sandbox/faces-config.xml</param-value>

The second one is not needed anymore, I suppose..

 

> Configurations /WEB-INF/faces-config.xml loaded twice
> -----------------------------------------------------
>
>          Key: MYFACES-1183
>          URL: http://issues.apache.org/jira/browse/MYFACES-1183
>      Project: MyFaces Core
>         Type: Bug
>   Components: General
>     Versions: 1.1.1
>  Environment: Weblogic 9, Facelets, MyFaces1.1.10
>     Reporter: Anthony Hong

>
> I have a JSF configuration file faces-config.xml and put it under /WEB-INF/
> In web.xml, setup context-param to load jsf configuration file.
> <context-param>
>         <param-name>javax.faces.CONFIG_FILES</param-name>
>         <param-value>/WEB-INF/faces-config.xml</param-value>
>     </context-param>
> Then this configuration file will be loaded twice. As /WEB-INF/faces-config.xml will loaded automaticly at first. If I put it in CONFIG_FILES again, it doesn't ignore this file. then phase listener and navigatorHandler has two instances in container which maybe a problem.

-- 
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


[jira] Commented: (MYFACES-1183) Configurations /WEB-INF/faces-config.xml loaded twice

Posted by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-1183?page=comments#action_12371244 ] 

Mike Kienenberger commented on MYFACES-1183:
--------------------------------------------

Gerald,

This is a different issue.    This is an unused config file entry, but it is not the same name as "WEB-INF/faces-config.xml" so it would never be loaded twice.   I realize now that my original search was on "WEB-INF/faces-config.xml" which is why I didn't see it before.

I've removed it.   Thanks.

> Configurations /WEB-INF/faces-config.xml loaded twice
> -----------------------------------------------------
>
>          Key: MYFACES-1183
>          URL: http://issues.apache.org/jira/browse/MYFACES-1183
>      Project: MyFaces Core
>         Type: Bug
>   Components: General
>     Versions: 1.1.1
>  Environment: Weblogic 9, Facelets, MyFaces1.1.10
>     Reporter: Anthony Hong

>
> I have a JSF configuration file faces-config.xml and put it under /WEB-INF/
> In web.xml, setup context-param to load jsf configuration file.
> <context-param>
>         <param-name>javax.faces.CONFIG_FILES</param-name>
>         <param-value>/WEB-INF/faces-config.xml</param-value>
>     </context-param>
> Then this configuration file will be loaded twice. As /WEB-INF/faces-config.xml will loaded automaticly at first. If I put it in CONFIG_FILES again, it doesn't ignore this file. then phase listener and navigatorHandler has two instances in container which maybe a problem.

-- 
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


[jira] Commented: (MYFACES-1183) Configurations /WEB-INF/faces-config.xml loaded twice

Posted by "Anthony Hong (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-1183?page=comments#action_12370793 ] 

Anthony Hong commented on MYFACES-1183:
---------------------------------------

sample of sorting/paginating of MyFaces have this issue

> Configurations /WEB-INF/faces-config.xml loaded twice
> -----------------------------------------------------
>
>          Key: MYFACES-1183
>          URL: http://issues.apache.org/jira/browse/MYFACES-1183
>      Project: MyFaces Core
>         Type: Bug
>   Components: General
>     Versions: 1.1.1
>  Environment: Weblogic 9, Facelets, MyFaces1.1.10
>     Reporter: Anthony Hong

>
> I have a JSF configuration file faces-config.xml and put it under /WEB-INF/
> In web.xml, setup context-param to load jsf configuration file.
> <context-param>
>         <param-name>javax.faces.CONFIG_FILES</param-name>
>         <param-value>/WEB-INF/faces-config.xml</param-value>
>     </context-param>
> Then this configuration file will be loaded twice. As /WEB-INF/faces-config.xml will loaded automaticly at first. If I put it in CONFIG_FILES again, it doesn't ignore this file. then phase listener and navigatorHandler has two instances in container which maybe a problem.

-- 
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


[jira] Commented: (MYFACES-1183) Configurations /WEB-INF/faces-config.xml loaded twice

Posted by "Gerald M?llan (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-1183?page=comments#action_12370946 ] 

Gerald Müllan commented on MYFACES-1183:
----------------------------------------

Apart from that, what we shall remove in the current sandbox web.xml is the param-value

/WEB-INF/sandbox/faces-config.xml 

Seems useless to me.

> Configurations /WEB-INF/faces-config.xml loaded twice
> -----------------------------------------------------
>
>          Key: MYFACES-1183
>          URL: http://issues.apache.org/jira/browse/MYFACES-1183
>      Project: MyFaces Core
>         Type: Bug
>   Components: General
>     Versions: 1.1.1
>  Environment: Weblogic 9, Facelets, MyFaces1.1.10
>     Reporter: Anthony Hong

>
> I have a JSF configuration file faces-config.xml and put it under /WEB-INF/
> In web.xml, setup context-param to load jsf configuration file.
> <context-param>
>         <param-name>javax.faces.CONFIG_FILES</param-name>
>         <param-value>/WEB-INF/faces-config.xml</param-value>
>     </context-param>
> Then this configuration file will be loaded twice. As /WEB-INF/faces-config.xml will loaded automaticly at first. If I put it in CONFIG_FILES again, it doesn't ignore this file. then phase listener and navigatorHandler has two instances in container which maybe a problem.

-- 
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


[jira] Commented: (MYFACES-1183) Configurations /WEB-INF/faces-config.xml loaded twice

Posted by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-1183?page=comments#action_12370947 ] 

Mike Kienenberger commented on MYFACES-1183:
--------------------------------------------

> /WEB-INF/sandbox/faces-config.xml 

Gerald,  where are you seeing this?   I don't see this entry in the current svn snapshot, or in past snapshots?   Maybe I'm looking in the wrong place or doing something else wrong, but a global search of the project for "faces-config.xml" didn't turn it up anywhere outside of the parser code itself.


> Configurations /WEB-INF/faces-config.xml loaded twice
> -----------------------------------------------------
>
>          Key: MYFACES-1183
>          URL: http://issues.apache.org/jira/browse/MYFACES-1183
>      Project: MyFaces Core
>         Type: Bug
>   Components: General
>     Versions: 1.1.1
>  Environment: Weblogic 9, Facelets, MyFaces1.1.10
>     Reporter: Anthony Hong

>
> I have a JSF configuration file faces-config.xml and put it under /WEB-INF/
> In web.xml, setup context-param to load jsf configuration file.
> <context-param>
>         <param-name>javax.faces.CONFIG_FILES</param-name>
>         <param-value>/WEB-INF/faces-config.xml</param-value>
>     </context-param>
> Then this configuration file will be loaded twice. As /WEB-INF/faces-config.xml will loaded automaticly at first. If I put it in CONFIG_FILES again, it doesn't ignore this file. then phase listener and navigatorHandler has two instances in container which maybe a problem.

-- 
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


[jira] Closed: (MYFACES-1183) Configurations /WEB-INF/faces-config.xml loaded twice

Posted by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-1183?page=all ]
     
Mike Kienenberger closed MYFACES-1183:
--------------------------------------

    Resolution: Cannot Reproduce

As far as I can tell, none of the Myfaces examples have ever listed /WEB-INF/faces-config.xml in the web.xml file.

> Configurations /WEB-INF/faces-config.xml loaded twice
> -----------------------------------------------------
>
>          Key: MYFACES-1183
>          URL: http://issues.apache.org/jira/browse/MYFACES-1183
>      Project: MyFaces Core
>         Type: Bug
>   Components: General
>     Versions: 1.1.1
>  Environment: Weblogic 9, Facelets, MyFaces1.1.10
>     Reporter: Anthony Hong

>
> I have a JSF configuration file faces-config.xml and put it under /WEB-INF/
> In web.xml, setup context-param to load jsf configuration file.
> <context-param>
>         <param-name>javax.faces.CONFIG_FILES</param-name>
>         <param-value>/WEB-INF/faces-config.xml</param-value>
>     </context-param>
> Then this configuration file will be loaded twice. As /WEB-INF/faces-config.xml will loaded automaticly at first. If I put it in CONFIG_FILES again, it doesn't ignore this file. then phase listener and navigatorHandler has two instances in container which maybe a problem.

-- 
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