Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-8098

Annotation scanning not working for JSF

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 6.0.0.M4
    • 6.0.0.M4
    • JSF
    • None

    Description

      The JBossAnnotationProvider is now integrated so that JSF can take advantage of the new annotation scanning. However, it doesn't find any annotations. I've verified that it is called, but it seems to have no effect.

      For reference, here are the requirements from the JSF spec. I think the first two requirements are taken care of by the JSF impl, but we need to confirm that. I'm attaching WARs to test the second two.

      11.5.1 Requirements for scanning of classes for annotations
      ■ If the <faces-config> element in the WEB-INF/faces-config.xml file
      contains metadata-complete attribute whose value is "true", the implementation must not perform annotation
      scanning on any classes except for those classes provided by the implementation itself. Otherwise, continue as
      follows.
      ■ If the runtime discovers a conflict between an entry in the Application Configuration Resources and an annotation, the
      entry in the Application Configuration Resources takes precedence.
      ■ All classes in WEB-INF/classes must be scanned.
      ■ For every jar in the application's WEB-INF/lib directory, if the jar contains a "META-INF/faces-config.xml"
      file or a file that matches the regular expression ".*\.faces-config.xml" (even an empty one), all classes in
      that jar must be scanned.

      Attachments

        Activity

          People

            ajustin@redhat.com Ales Justin
            ssilvert@redhat.com Stan Silvert
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: