[forge-issues] [JBoss JIRA] (FORGE-657) Missing mime-mapping in web.xml

fiorenzo pizza (JIRA) jira-events at lists.jboss.org
Wed Aug 22 18:08:14 EDT 2012


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

fiorenzo pizza commented on FORGE-657:
--------------------------------------

I started my search, about to add some mime mapping to WebAppDescriptor.

In org.jboss.forge.scaffold.faces.FacesScaffold class, in the method:
public List<Resource<?>> generateIndex(String targetDir, final Resource<?> template, final boolean overwrite) 
we should modify the project's WebAppDescriptor.

I think in shrinkwrap-descriptors-impl-1.1.0-beta-1 it's impossible to do:
WebAppDescriptor descriptor = Descriptors.create(WebAppDescriptor.class).mimeMapping()
				.extension("ico").mimeType("image/x-icon").up();
this.project.getFacet(ServletFacet.class).saveConfig(descriptor);

I found these interesting post/gist:
https://community.jboss.org/message/605454#605454
https://gist.github.com/1028220

What do you think about?
                
> Missing mime-mapping in web.xml
> -------------------------------
>
>                 Key: FORGE-657
>                 URL: https://issues.jboss.org/browse/FORGE-657
>             Project: Forge
>          Issue Type: Bug
>          Components: Java EE APIs
>            Reporter: George Gastaldi
>              Labels: starter
>             Fix For: 2.0.0.Alpha1
>
>
> To eliminate the annoying log jboss server log:
> {code}
> 23:59:54,914 AVVERTENZA [javax.enterprise.resource.webcontainer.jsf.context] (http--127.0.0.1-8080-1) JSF1091: No mime type could be found for file favicon.ico. To resolve this, add a mime-type mapping to the applications web.xml
> {code}
> you should add on web.xml:
> {code:xml}
> <mime-mapping>
>    <extension>ico</extension>
>    <mime-type>image/x-icon</mime-type>
> </mime-mapping>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the forge-issues mailing list