Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
When the skinning framework uses a skin with a stylesheet-name that cannot be found, it writes out a SEVERE error and shows the entire stack. This should be changed to write out a warning, and do not show the FileNotFoundException/stack. It's annoying to the user to see the stack when the error is really a warning, and the code didn't blow up.
Feb 15, 2010 10:31:56 AM org.apache.myfaces.trinidadinternal.skin.StyleSheetEnt
ry
SEVERE:
java.io.FileNotFoundException: Unable to locate style sheet "css/IDM.css" in lo
cal styles directory (/scratch/abc/view_storage/abcnewhost/xyz/xyz-p
roduct/consoles/rolemgmt/idX_RoleManagment/RoleMgmtUI/public_html/WEB-INF/temp/
abc/styles), or on the class path.
Please be sure that this style sheet is installed.
at org.apache.myfaces.trinidadinternal.skin.StyleSheetNameResolver.getProvider
(StyleSheetNameResolver.java:117)
at org.apache.myfaces.trinidadinternal.share.io.CachingNameResolver.getProvide
r(CachingNameResolver.java:97)
at org.apache.myfaces.trinidadinternal.skin.SkinStyleSheetParserUtils.parseCSS
Source(SkinStyleSheetParserUtils.java:91)
at org.apache.myfaces.trinidadinternal.skin.StyleSheetEntry._createSkinStyleSh
eetFromCSS(StyleSheetEntry.java:204)
at org.apache.myfaces.trinidadinternal.skin.StyleSheetEntry._createSkinStyleSh
eet(StyleSheetEntry.java:182)
at org.apache.myfaces.trinidadinternal.skin.StyleSheetEntry.createEntry(StyleS
heetEntry.java:70)
at org.apache.myfaces.trinidadinternal.skin.SkinImpl._createStyleSheetDocument
(SkinImpl.java:537)
at org.apache.myfaces.trinidadinternal.skin.SkinImpl.getStyleSheetDocument(Ski
nImpl.java:346)
at org.apache.myfaces.trinidadinternal.skin.SkinExtension.getStyleSheetDocumen
t(SkinExtension.java:527)
at org.apache.myfaces.trinidadinternal.skin.SkinStyleProvider.createStyleSheet
Document(SkinStyleProvider.java:158)
at org.apache.myfaces.trinidadinternal.style.cache.FileSystemStyleCache._getSt
yleSheetDocument(FileSystemStyleCache.java:638)