ICEfaces
  1. ICEfaces
  2. ICE-9168

Mojarra logs mime-type and missing resource WARNINGS for certain dynamic resources

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.3
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces Mojarra

      Description

      The latest versions of Mojarra (since 2.1.18 approx) log the following WARNINGS when running with ICEfaces. The logging is different depending on the mode that Mojarra is in. In Development, both the mime-type and missing resource WARNINGS are fired. In Production, just the mime-type WARNINGS are logged.

      Development mode:

      Apr 12, 2013 11:56:35 AM com.sun.faces.context.ExternalContextImpl getMimeType
      WARNING: JSF1091: No mime type could be found for file TestScript. To resolve this, add a mime-type mapping to the applications web.xml.
      Apr 12, 2013 11:56:35 AM com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
      WARNING: JSF1064: Unable to find or serve resource, TestScript.
      Apr 12, 2013 11:56:35 AM com.sun.faces.context.ExternalContextImpl getMimeType
      WARNING: JSF1091: No mime type could be found for file CoreCSSOutput. To resolve this, add a mime-type mapping to the applications web.xml.
      Apr 12, 2013 11:56:35 AM com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
      WARNING: JSF1064: Unable to find or serve resource, CoreCSSOutput.

      Production mode:

      Apr 12, 2013 11:59:02 AM com.sun.faces.context.ExternalContextImpl getMimeType
      WARNING: JSF1091: No mime type could be found for file TestScript. To resolve this, add a mime-type mapping to the applications web.xml.
      Apr 12, 2013 11:59:02 AM com.sun.faces.context.ExternalContextImpl getMimeType
      WARNING: JSF1091: No mime type could be found for file CoreCSSOutput. To resolve this, add a mime-type mapping to the applications web.xml.

        Activity

        Deryk Sinotte created issue -
        Deryk Sinotte made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Deryk Sinotte [ deryk.sinotte ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Affects Version/s 3.2 [ 10338 ]
        Affects Version/s 3.3 [ 10370 ]
        Markus Guenther made changes -
        Comment [ This warning message as well is raised if there are any URL parameters used ...

        Simply got rid of them by adding the following to the logging.properties of Tomcat:
        {code}
        ## inhibit JSF1091 warning message
        com.sun.faces.context.ExternalContextImpl=SEVERE
        {code} ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Deryk Sinotte
            Reporter:
            Deryk Sinotte
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: