[richfaces-issues] [JBoss JIRA] (RF-13420) Showcase - WARNING No mime type could be found for file fontawesome-webfont.woff is logged

Juraj Húska (JIRA) jira-events at lists.jboss.org
Thu Dec 5 06:22:06 EST 2013


    [ https://issues.jboss.org/browse/RF-13420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928864#comment-12928864 ] 

Juraj Húska edited comment on RF-13420 at 12/5/13 6:21 AM:
-----------------------------------------------------------

I tried to add the mime type to {{web.xml}}. According to [this|http://stackoverflow.com/a/5142316] stackoverflow thread, I used this one:
{code:xml}
<mime-mapping>
        <extension>woff</extension>
        <mime-type>application/font-woff</mime-type>
</mime-mapping>
{code}

After applying this fix the WARNING is *not* logged anymore. Do you think it is a proper solution ?

We had similar problem reported here: RF-13380. But IMHO it is a different case, as there loading the resources finished with HTTP 404, this finishes with 200.
                
      was (Author: jhuska):
    I tried to add the mime type to {{web.xml}}. According to [this|http://stackoverflow.com/a/5142316] stackoverflow thread, I used this one:
{code:xml}
<mime-mapping>
        <extension>woff</extension>
        <mime-type>application/font-woff</mime-type>
</mime-mapping>
{code}

After applying this fix the WARNING is *not* logged anymore.
                  
> Showcase - WARNING No mime type could be found for file fontawesome-webfont.woff is logged
> ------------------------------------------------------------------------------------------
>
>                 Key: RF-13420
>                 URL: https://issues.jboss.org/browse/RF-13420
>             Project: RichFaces
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>          Components: showcase
>    Affects Versions: 5.0.0.Alpha2
>         Environment: Firefox, Chrome
> JBoss AS 7.1.1.Final
>            Reporter: Juraj Húska
>            Priority: Minor
>
> Following WARNING is being logged to JBoss AS console when demos for {{pickList}} or {{orderingList}} are loaded.
> {code:none}
> 12:10:08,859 WARNING [javax.enterprise.resource.webcontainer.jsf.context] (http--0.0.0.0-8080-1) JSF1091: No mime type could be found for file font-awesome/font/fontawesome-webfont.woff.  To resolve this, add a mime-type mapping to the applications web.xml.
> {code}
> Steps to reproduce:
> # deploy showcase
> # clean the browser cache
> # load the demo for e.g. pickList: http://localhost:8080/showcase/richfaces/component-sample.jsf?demo=pickList&skin=blueSky
> # look for the WARNING in the JBoss AS console
> Notes:
> * the http response with file font-awesome/font/fontawesome-webfont.woff finish with 200 OK.
> * this WARNING is logged only with the first page load after the browser cache cleaning, then it is served from cache and WARNING is not logged

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the richfaces-issues mailing list