Bug 866976

Summary: seam-gen generated war project richfaces warnings in logs "Problem parsing 'theme.ecss' resource: Error in attribute selector."
Product: [Retired] JBoss Enterprise WFK Platform 2 Reporter: Marek Schmidt <maschmid>
Component: SeamAssignee: Marek Novotny <mnovotny>
Status: CLOSED CURRENTRELEASE QA Contact: Marek Schmidt <maschmid>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.1.0CC: kpiwko
Target Milestone: CR1   
Target Release: 2.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: Seam2.3
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-30 15:34:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marek Schmidt 2012-10-16 13:16:32 UTC
Description of problem:

Requesting the home page of a seam-gen generated WAR project displays the following warnings in the EAP6.0.0 logs:

15:05:16,744 WARNING [org.richfaces.log.Resource] (http-/127.0.0.1:8080-3) Problem parsing 'theme.ecss' resource: Error in attribute selector. Invalid token "*". Was expecting one of: <S>, "=", "]", "~=", "|=".
15:05:16,744 WARNING [org.richfaces.log.Resource] (http-/127.0.0.1:8080-3) Problem parsing 'theme.ecss' resource: Ignoring the whole rule.
15:05:16,745 WARNING [org.richfaces.log.Resource] (http-/127.0.0.1:8080-3) Problem parsing 'theme.ecss' resource: Error in attribute selector. Invalid token "*". Was expecting one of: <S>, "=", "]", "~=", "|=".
15:05:16,745 WARNING [org.richfaces.log.Resource] (http-/127.0.0.1:8080-3) Problem parsing 'theme.ecss' resource: Ignoring the whole rule.
15:05:16,747 WARNING [javax.enterprise.resource.webcontainer.jsf.context] (http-/127.0.0.1:8080-3) JSF1091: No mime type could be found for file org.richfaces.renderkit.html.images.SliderFieldGradient.  To resolve this, add a mime-type mapping to the applications web.xml.
15:05:16,748 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (http-/127.0.0.1:8080-3) JSF1064: Unable to find or serve resource, org.richfaces.renderkit.html.images.SliderFieldGradient.
15:05:16,748 WARNING [javax.enterprise.resource.webcontainer.jsf.context] (http-/127.0.0.1:8080-3) JSF1091: No mime type could be found for file org.richfaces.renderkit.html.images.SliderFieldGradient.  To resolve this, add a mime-type mapping to the applications web.xml.
15:05:16,748 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (http-/127.0.0.1:8080-3) JSF1064: Unable to find or serve resource, org.richfaces.renderkit.html.images.SliderFieldGradient.
15:05:16,749 WARNING [javax.enterprise.resource.webcontainer.jsf.context] (http-/127.0.0.1:8080-3) JSF1091: No mime type could be found for file org.richfaces.renderkit.html.GradientA.  To resolve this, add a mime-type mapping to the applications web.xml.
15:05:16,749 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (http-/127.0.0.1:8080-3) JSF1064: Unable to find or serve resource, org.richfaces.renderkit.html.GradientA.
15:05:16,750 WARNING [javax.enterprise.resource.webcontainer.jsf.context] (http-/127.0.0.1:8080-3) JSF1091: No mime type could be found for file org.richfaces.renderkit.images.TabGradientB.  To resolve this, add a mime-type mapping to the applications web.xml.
15:05:16,750 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (http-/127.0.0.1:8080-3) JSF1064: Unable to find or serve resource, org.richfaces.renderkit.images.TabGradientB.
15:05:16,751 WARNING [javax.enterprise.resource.webcontainer.jsf.context] (http-/127.0.0.1:8080-3) JSF1091: No mime type could be found for file org.richfaces.renderkit.html.images.ComboBoxArrowImageDisable.  To resolve this, add a mime-type mapping to the applications web.xml.
15:05:16,751 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (http-/127.0.0.1:8080-3) JSF1064: Unable to find or serve resource, org.richfaces.renderkit.html.images.ComboBoxArrowImageDisable.
15:05:16,752 WARNING [javax.enterprise.resource.webcontainer.jsf.context] (http-/127.0.0.1:8080-3) JSF1091: No mime type could be found for file org.richfaces.renderkit.html.images.ComboBoxButtonPressGradient.  To resolve this, add a mime-type mapping to the applications web.xml.
15:05:16,752 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (http-/127.0.0.1:8080-3) JSF1064: Unable to find or serve resource, org.richfaces.renderkit.html.images.ComboBoxButtonPressGradient.

The problematic resource seems to be the theme.ecss, which translates into something similar to the following in the generated HTML:

<link type="text/css" rel="stylesheet" href="/myproject/rfRes/theme.ecss.seam?db=eAHb1WuhCAAFJAGh" />


Version-Release number of selected component (if applicable):
jboss-seam-2.3.0.Final-redhat-1

How reproducible:
Always

Steps to Reproduce:
1. Use seam-gen to generate a default WAR project
2. explode the project into EAP6.0.0
3. Clear cache in Firefox (as it won't load the problematic CSS resource if it already have it in cache)
4. Open http://127.0.0.1:8080/myproject/home.seam
  
Actual results:
The aforementioned warnings appear in the logs.

Expected results:
No errors or warnings should appear in the logs

Comment 1 Marek Novotny 2012-10-31 14:40:38 UTC
There are some undocumented issues for migration from xcss to ecss (Richfaces 3 to Richfaces 4). These warnings are symptoms for missing (renamed/removed) static resources in richfaces 4.2.x UI components.

I removed all not clear replacements and everywhere I can recognize similar existing static resource images so some are fixed.

Comment 4 Karel Piwko 2012-11-30 15:34:08 UTC
Distributed as a part of WFK 2.1.0.GA release.