Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2994

faces-config.xml referenced in webAppConfig <absolute-ordering> could not be on the classpath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2
    • 2.0.3
    • JSR-314
    • None

    Description

      Reported by David Jencks

      I'm finding a tck problem around FacesConfig ordering. I haven't figured out if this is caused by the geronimo integration or myfaces itself but I think there's something odd in the myfaces code.

      DefaultFacesConfigurationProvider line 461 has

      getDispenser().feed(getFacesConfig(appConfigResources, nameSlot.getName()));

      getFacesConfig can return null if it doesn't find a FacesConfig with the supplied name:

      private FacesConfig getFacesConfig(List<FacesConfig> appConfigResources, String name)
      {
      for (FacesConfig cfg: appConfigResources)
      {
      if (cfg.getName() != null && name.equals(cfg.getName()))

      { return cfg; }

      }
      return null;
      }

      but the feed method starts off:

      public void feed(FacesConfig config)
      {
      for (Factory factory : config.getFactories())

      assuming a non-null argument.

      Whatever the cause of the null I'm seeing returned from getFacesConfig this doesn't seem right.

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            lu4242 Leonardo Uribe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: