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

Wrong message indicating ri or myfaces in the classpath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.0.15, 2.1.9
    • None
    • None

    Description

      Reported by Jon Bionda on dev list:

      myfaces-core-2.1.8 source

      org.apache.myfaces.webapp.WebConfigParamsLogger.logWebContextParams()

      Not a big deal but it caused me a few hours of scratching my head so thought I would subscribe and post this.

      I am getting the "Starting up Tomahawk on the RI-JSF-Implementation." message on startup with JBoss 7.1.1 when using the org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL context parm to stop it from loading the JSF RI. I see lots of myfaces initialization msgs in the log so I was pretty sure(hopeful) the message was wrong so I downloaded and looked at the code and think I see a reverse logic error in the source file identified at the top of this email.

      Here’s the code and I think the wrong message is being issued for when it checks for availability of both the RI and myfaces classes.

      if (myfacesConfig.isTomahawkAvailable())

      {

      if(myfacesConfig.isMyfacesImplAvailable())

      {

      if(log.isLoggable(Level.INFO))

      { log.info("Starting up Tomahawk on the RI-JSF-Implementation."); ßmsg should be MyFaces }

      }

      if(myfacesConfig.isRiImplAvailable())

      {

      if(log.isLoggable(Level.INFO))

      { log.info("Starting up Tomahawk on the MyFaces-JSF-Implementation"); ß msg should be RI }

      }

      }

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: