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

CDI support log message can be misleading

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.0.2
    • 5.0.0, 4.0.3, 4.1.1
    • None
    • None

    Description

      I was debugging something in Apache TomEE and was confused that I saw this in my logs

      INFO - MyFaces Core CDI support enabled
      INFO - MyFaces Core Bean Validation support enabled
      INFO - Couldn't discover the current project stage, using Production
      INFO - MyFaces Core has started, it took [9206] ms.
      

      I knew for sure CDI was not available in FacesInitializerImpl because that's the part I have been debugging. The log message depends on if jakarta.enterprise.inject.spi.BeanManager is available on the Classloader, not if a running CDI container was actually detected when MyFaces started

       

      IMO either the log message should be changed to something like "MyFaces Core successfully detected CDI" (which IMO can still confuse users) or the message should just be logged in FacesInitializerImpl

      Attachments

        Activity

          People

            Unassigned Unassigned
            jungm Markus Jung
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: