3 Replies Latest reply on Feb 7, 2011 8:54 AM by Mark Paluch

    Create skin problems with RichFaces 4 M5

    Marcos Simón Newbie

      Hi,

       

       

      I want to create my own skin, and I have made step by step in http://docs.jboss.org/richfaces/nightly_4_0_X/Developer_Guide/en-US/html_single/#exam-Developer_Guide-Skinning_and_theming-blueSky.skin.properties_file but it don't work.

       

       

      I also have made some changes like are suggested in http://community.jboss.org/message/572321, and I not sure if it could be related with https://issues.jboss.org/browse/RF-9613

       

      In web.xml:

      ...

      <context-param>

                          <param-name>org.richfaces.skin</param-name>

                          <param-value>sicof2</param-value>

      </context-param>

      ...

       

      And in I have got the file /WebContent/META-INF/skins/sicof2.skins.properties that is a copy of blueSky.skins.properties

       

      The exception appears is:

      12:01:47,400 GRAVE [javax.enterprise.resource.webcontainer.jsf.application] Error Rendering View[/pages/home.xhtml]: org.richfaces.skin.SkinNotFoundException: Skin with name {0} not found

                at org.richfaces.skin.AbstractSkinFactory.getSkin(AbstractSkinFactory.java:171) [:4.0.0.20101226-M5]

                at org.richfaces.skin.SkinFactoryImpl.getSkinOrName(SkinFactoryImpl.java:129) [:4.0.0.20101226-M5]

                at org.richfaces.skin.SkinFactoryImpl.getSkin(SkinFactoryImpl.java:67) [:4.0.0.20101226-M5]

                at org.richfaces.resource.CompiledCSSResource.getSkinHashCode(CompiledCSSResource.java:145) [:4.0.0.20101226-M5]

                at org.richfaces.resource.CompiledCSSResource.writeState(CompiledCSSResource.java:224) [:4.0.0.20101226-M5]

                at org.richfaces.util.Util.saveResourceState(Util.java:572) [:4.0.0.20101226-M5]

                at org.richfaces.resource.AbstractBaseResource.getRequestPath(AbstractBaseResource.java:160) [:4.0.0.20101226-M5]

                at com.sun.faces.renderkit.html_basic.StylesheetRenderer.encodeEnd(StylesheetRenderer.java:98) [:2.0.3-FCS]

                at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:879) [:2.0.3-FCS]

                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650) [:2.0.3-FCS]

                at com.sun.faces.renderkit.html_basic.HeadRenderer.encodeHeadResources(HeadRenderer.java:101) [:2.0.3-FCS]

                at com.sun.faces.renderkit.html_basic.HeadRenderer.encodeBegin(HeadRenderer.java:76) [:2.0.3-FCS]

                at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:824) [:2.0.3-FCS]

                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1641) [:2.0.3-FCS]

                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646) [:2.0.3-FCS]

                at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:389) [:2.0.3-FCS]

                at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:127) [:2.0.3-FCS]

                at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:269) [:2.0.3-FCS]

                at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117) [:2.0.3-FCS]

                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97) [:2.0.3-FCS]

                at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135) [:2.0.3-FCS]

                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309) [:2.0.3-FCS]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]

                at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]

                at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]

                at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]

                at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]

                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]

                at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]

                at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]

                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]

                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]

                at java.lang.Thread.run(Thread.java:619) [:1.6.0_21]

      Caused by: java.util.concurrent.ExecutionException: org.richfaces.skin.SkinNotFoundException: Skin with name sicof2 not found

                at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) [:1.6.0_21]

                at java.util.concurrent.FutureTask.get(FutureTask.java:83) [:1.6.0_21]

                at org.richfaces.skin.AbstractSkinFactory.getSkin(AbstractSkinFactory.java:167) [:4.0.0.20101226-M5]

                ... 40 more

      Caused by: org.richfaces.skin.SkinNotFoundException: Skin with name sicof2 not found

                at org.richfaces.skin.AbstractSkinFactory.loadProperties(AbstractSkinFactory.java:143) [:4.0.0.20101226-M5]

                at org.richfaces.skin.AbstractSkinFactory.buildSkin(AbstractSkinFactory.java:117) [:4.0.0.20101226-M5]

                at org.richfaces.skin.AbstractSkinFactory$SkinBuilder.call(AbstractSkinFactory.java:58) [:4.0.0.20101226-M5]

                at org.richfaces.skin.AbstractSkinFactory$SkinBuilder.call(AbstractSkinFactory.java:48) [:4.0.0.20101226-M5]

                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [:1.6.0_21]

                at java.util.concurrent.FutureTask.run(FutureTask.java:138) [:1.6.0_21]

                at org.richfaces.skin.AbstractSkinFactory.getSkin(AbstractSkinFactory.java:166) [:4.0.0.20101226-M5]

                ... 40 more

       

       

      12:01:47,410 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/pryPrueba].[Faces Servlet]] Servlet.service() para servlet Faces Servlet lanzó excepción: org.richfaces.skin.SkinNotFoundException: Skin with name sicof2 not found

                at org.richfaces.skin.AbstractSkinFactory.loadProperties(AbstractSkinFactory.java:143) [:4.0.0.20101226-M5]

                at org.richfaces.skin.AbstractSkinFactory.buildSkin(AbstractSkinFactory.java:117) [:4.0.0.20101226-M5]

                at org.richfaces.skin.AbstractSkinFactory$SkinBuilder.call(AbstractSkinFactory.java:58) [:4.0.0.20101226-M5]

                at org.richfaces.skin.AbstractSkinFactory$SkinBuilder.call(AbstractSkinFactory.java:48) [:4.0.0.20101226-M5]

                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [:1.6.0_21]

                at java.util.concurrent.FutureTask.run(FutureTask.java:138) [:1.6.0_21]

                at org.richfaces.skin.AbstractSkinFactory.getSkin(AbstractSkinFactory.java:166) [:4.0.0.20101226-M5]

                at org.richfaces.skin.SkinFactoryImpl.getSkinOrName(SkinFactoryImpl.java:129) [:4.0.0.20101226-M5]

                at org.richfaces.skin.SkinFactoryImpl.getSkin(SkinFactoryImpl.java:67) [:4.0.0.20101226-M5]

                at org.richfaces.resource.CompiledCSSResource.getSkinHashCode(CompiledCSSResource.java:145) [:4.0.0.20101226-M5]

                at org.richfaces.resource.CompiledCSSResource.writeState(CompiledCSSResource.java:224) [:4.0.0.20101226-M5]

                at org.richfaces.util.Util.saveResourceState(Util.java:572) [:4.0.0.20101226-M5]

                at org.richfaces.resource.AbstractBaseResource.getRequestPath(AbstractBaseResource.java:160) [:4.0.0.20101226-M5]

                at com.sun.faces.renderkit.html_basic.StylesheetRenderer.encodeEnd(StylesheetRenderer.java:98) [:2.0.3-FCS]

                at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:879) [:2.0.3-FCS]

                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650) [:2.0.3-FCS]

                at com.sun.faces.renderkit.html_basic.HeadRenderer.encodeHeadResources(HeadRenderer.java:101) [:2.0.3-FCS]

                at com.sun.faces.renderkit.html_basic.HeadRenderer.encodeBegin(HeadRenderer.java:76) [:2.0.3-FCS]

                at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:824) [:2.0.3-FCS]

                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1641) [:2.0.3-FCS]

                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646) [:2.0.3-FCS]

                at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:389) [:2.0.3-FCS]

                at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:127) [:2.0.3-FCS]

                at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:269) [:2.0.3-FCS]

                at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117) [:2.0.3-FCS]

                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97) [:2.0.3-FCS]

                at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135) [:2.0.3-FCS]

                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309) [:2.0.3-FCS]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]

                at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]

                at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]

                at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]

                at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]

                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]

                at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]

                at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]

                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]

                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]

                at java.lang.Thread.run(Thread.java:619) [:1.6.0_21]

       

      I have noticed that the name of the skin appears in the exception, so I suppose that the problem is the sicof2.skin.properties file location.  I ´ve put it in diferentes folders, but the problem goes on.

       

       

      Can somebody help me, and sais to me whta's wrong?

       

      Thanks in advance,

      Marcos