Details
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.
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 -
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #34386 | Fri Apr 12 13:08:07 MDT 2013 | deryk.sinotte | |
Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/BridgeSetup.java
MODIFY /icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/impl/application/CoalescingResource.java MODIFY /icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/impl/application/CoalescingResourceHandler.java |
Deryk Sinotte
made changes -
Field | Original Value | New Value |
---|---|---|
Status | Open [ 1 ] | Resolved [ 5 ] |
Assignee | Deryk Sinotte [ deryk.sinotte ] | |
Resolution | Fixed [ 1 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #34391 | Fri Apr 12 14:57:03 MDT 2013 | ken.fyten | |
Files Changed | ||||
MODIFY
/icefaces3/tags/icefaces-3.3.0/icefaces/core/src/main/java/org/icefaces/impl/event/BridgeSetup.java
MODIFY /icefaces3/tags/icefaces-3.3.0/icefaces/core/src/main/java/org/icefaces/impl/application/CoalescingResource.java MODIFY /icefaces3/tags/icefaces-3.3.0/icefaces/core/src/main/java/org/icefaces/impl/application/CoalescingResourceHandler.java |
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 ] |
I added extensions to the resource names to avoid the mime-type warnings:
And I added a custom attribute that can be checked during resource coalescing to avoid having createResource called for these dynamic resources.