3 Replies Latest reply on Nov 23, 2010 11:48 AM by Matt Ball

    Custom skin - SkinNotFoundException

    Matt Ball Newbie

      I'm trying to tweak one of the default skins to make the font size larger (11pt is pretty small!). Following these steps, I've created a skins directory inside of my web project's META-INF directory. Inside that is winemod.skin.properties:

       

       

      baseSkin=wine
      generalSizeFont=14px

      baseSkin=wine

      generalSizeFont=14px

       

      and my web.xml file contains this bit:

       

       

      <context-param>

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

      <param-value>winemod</param-value>

      </context-param>

       

      But when I load a page, I get a SkinNotFoundException:

       

       

      SEVERE: Error Rendering View[/login.xhtml]

      org.richfaces.skin.SkinNotFoundException: Skin with name {0} not found

      at org.richfaces.skin.AbstractSkinFactory.getSkin(AbstractSkinFactory.java:171)

      at org.richfaces.skin.SkinFactoryImpl.getSkinOrName(SkinFactoryImpl.java:129)

      at org.richfaces.skin.SkinFactoryImpl.getSkin(SkinFactoryImpl.java:67)

      at org.richfaces.resource.CompiledCSSResource.getSkinHashCode(CompiledCSSResource.java:145)

      at org.richfaces.resource.CompiledCSSResource.writeState(CompiledCSSResource.java:224)

      at org.richfaces.util.Util.saveResourceState(Util.java:568)

      at org.richfaces.resource.AbstractBaseResource.getRequestPath(AbstractBaseResource.java:160)

      at com.sun.faces.renderkit.html_basic.StylesheetRenderer.encodeEnd(StylesheetRenderer.java:98)

      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:878)

      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1620)

      at com.sun.faces.renderkit.html_basic.HeadRenderer.encodeEnd(HeadRenderer.java:93)

      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:878)

      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1620)

      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616)

      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:380)

      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126)

      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)

      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)

      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)

      at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)

      at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:822)

      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)

      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:517)

      at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:488)

      at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:379)

      at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:460)

      at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:251)

      at com.sun.web.security.RealmAdapter.invokeAuthenticateDelegate(RealmAdapter.java:1187)

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:619)

      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:615)

      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)

      at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)

      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)

      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)

      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)

      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)

      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)

      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)

      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)

      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)

      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)

      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)

      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)

      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)

      at com.sun.grizzly.ContextTask.run(ContextTask.java:69)

      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)

      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)

      at java.lang.Thread.run(Thread.java:662)

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

      at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)

      at java.util.concurrent.FutureTask.get(FutureTask.java:83)

      at org.richfaces.skin.AbstractSkinFactory.getSkin(AbstractSkinFactory.java:167)

      ... 51 more

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

      at org.richfaces.skin.AbstractSkinFactory.loadProperties(AbstractSkinFactory.java:143)

      at org.richfaces.skin.AbstractSkinFactory.buildSkin(AbstractSkinFactory.java:117)

      at org.richfaces.skin.AbstractSkinFactory$SkinBuilder.call(AbstractSkinFactory.java:58)

      at org.richfaces.skin.AbstractSkinFactory$SkinBuilder.call(AbstractSkinFactory.java:48)

      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

      at java.util.concurrent.FutureTask.run(FutureTask.java:138)

      at org.richfaces.skin.AbstractSkinFactory.getSkin(AbstractSkinFactory.java:166)

      ... 51 more

       

      Am I missing something? Are the directions wrong/incomplete? Are custom skins just broken in RichFaces M4? Specifying the normal wine skin works without any issues:

       

       

      <context-param>

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

      <param-value>wine</param-value>

      </context-param>