1 Reply Latest reply on Sep 7, 2011 1:02 PM by langer123

    JSF2/Richfaces4 not loading contents of .ecss files


      I'm upgrading to Richfaces 4 and the Sun implementation of JSF2 (2.0.6) from Richfaces 3.3 and JSF 1.2.

      My css files are under 'WebContent/resources/css'.

      When pages get rendered, all .css files get loaded correctly.

      For some reason the content of my .ecss files do not get loaded, any ideas why this is?

      Do I need some extra settings in my web.xml?


        <meta http-equiv="Content-Type" content="text/xhtml" charset="UTF-8" />
        <title><ui:insert name="pageTitle" /> - </title>
        <h:outputStylesheet library="css" name="broken.ecss" />
        <h:outputStylesheet library="css" name="works.css" />



      p {
        margin-top: 15px;


      Looking at firebug, the styles in broken.ecss are not been found.



      One thing I did notice is the path to the files. My css files have the JSF2 resources path while ecss files have the Richfaces resources path. Could this be the issue (Seen as I have all my files under the default JSF2 resources location)?





      Also, the following is shown in logs:


      "GET /AppPath/rfRes/common.ecss.jsf?db=eAHTLYlbCQADeQGp&ln=css HTTP/1.1" 302 -





      Ok, the 302 was due to a redirect for errors I had in my web.xml. Now I can see the true cause of the problem:


      SEVERE: Servlet.service() for servlet [Faces Servlet] in context with path [/WebApp] threw exception [Servlet execution threw an exception] with root cause
      java.lang.ClassNotFoundException: com.steadystate.css.parser.CSSOMParser


      Do I need to include some sort of CSSOMParse jar in my app also?