8 Replies Latest reply on Jan 29, 2010 3:50 PM by Nick Belaevski

    ThemeNotFoundException for 3 of 4 out-of-the-box Themes

    Matthew Fischer Newbie

      To All,

       

      I'm getting an org.richfaces.skin.ThemeNotFoundException: for all the out-of-the-box themes except "simple".

       

      Examples:

      org.richfaces.skin.ThemeNotFoundException: Theme with name violetRays not found

       

      org.richfaces.skin.ThemeNotFoundException: Theme with name smooth not found

       

      I'm using the Beta 1 release of RichFaces 3.3.3

       

      Any thought on how I can get the other thems to be found?

       

      Thanks.


      Matt

       

      Full Output:

      Jan 27, 2010 5:40:15 PM javax.faces.webapp._ErrorPageWriter handleThrowable
      SEVERE: An exception occurred
      javax.servlet.ServletException: Theme with name violetRays not found
      at javax.faces.webapp.FacesServlet._handleStandardRequest(FacesServlet.java:483)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:209)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:285)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:341)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
      at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
      at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
      at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
      at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
      at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
      at java.lang.Thread.run(Unknown Source)
      Caused by: org.richfaces.skin.ThemeNotFoundException: Theme with name violetRays not found
      at org.richfaces.skin.SkinFactoryImpl.getTheme(SkinFactoryImpl.java:376)
      at org.richfaces.component.UIPage.getRendererType(UIPage.java:41)
      at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:1035)
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:425)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:593)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:602)
      at org.apache.myfaces.view.jsp.JspViewDeclarationLanguage.actuallyRenderView(JspViewDeclarationLanguage.java:305)
      at org.apache.myfaces.view.jsp.JspViewDeclarationLanguage.renderView(JspViewDeclarationLanguage.java:225)
      at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:222)
      at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
      at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
      at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:73)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:190)
      at javax.faces.webapp.FacesServlet._handleStandardRequest(FacesServlet.java:453)
      ... 28 more

       

        • 2. Re: ThemeNotFoundException for 3 of 4 out-of-the-box Themes
          Matthew Fischer Newbie

          Ilya,

           

          Thanks for the response and please forgive me in advance for my ignorance.  I saw that article when I was attempting to figure this out, but I have been using richfaces since ajax4jsf days (2005/2006?) and always just downloaded and included the .jars, I have never used Maven and I am totally unfamiliar with how to incorporate it into the development environment.

           

          I am using JBoss Developers Studio 2.0.0.CR2 (started off with Exadel Studio), and creating the application with MyFaces, Hibernate, RichFaces.

           

          So, what I'm really asking, is there some easy instructions on how to implement this?

           

          How does Maven integrate into my current development environment?  How does it integrate into the final application (.war)?

           

          Basically, Maven has me lost.

           

          Thanks.

           

          Matt

          • 3. Re: ThemeNotFoundException for 3 of 4 out-of-the-box Themes
            Nick Belaevski Master

            Matt,

             

            You don't need Maven in order to use themes. Just grab themes-3.3.3.BETA1.jar from downloads page: http://www.jboss.org/richfaces/download/milestones.html and add it to the application classpath just like you do for RF .jar files.

             

            P.S. Maven makes developer's life easier, so I'd suggest to take a quick look at it: http://maven.apache.org/what-is-maven.html & http://maven.apache.org/users/index.html. JBoss Tools have Maven integration available.

             

            Message was edited by: Nick Belaevski

            • 4. Re: ThemeNotFoundException for 3 of 4 out-of-the-box Themes
              Matthew Fischer Newbie

              Nick,

               

              Thanks.  That's more like it!

               

              It appears that the themes-3.3.3.BETA1.jar has only two packaged themes (oldschool and smooth), is this correct?

               

              I guess I'll have to roll up my sleeves and get experienced with Maven.  I have a love/hate relationship with all this open source development!  I guess my true theme is Old School !

               

              BTW - There seems to be a bug with the Modal Window in IE on the Development Milestones download page(http://www.jboss.org/richfaces/download/milestones.html).  I was able to right-click and do a "save-as" but clicking the link just disabled the page with no visible modal window.  OK in Firefox.

               

              Thanks again.

               

              Matt

              • 5. Re: ThemeNotFoundException for 3 of 4 out-of-the-box Themes
                Nick Belaevski Master

                Matt,

                 

                Sorry, themes.jar does not contain violetRays, you can get .jar file for it from here: http://repository.jboss.org/maven2/org/richfaces/samples/violetRays/3.3.3.BETA1/

                There are three themes included into themes.jar:

                -  csszend

                - oldschool

                - smooth

                 

                You can find which themes are included by browsing .jar archive into META-INF/themes. Theme definition file has '.theme.properties' extension, like this: 'csszend.theme.properties'.

                 

                There seems to be something wrong with downloads page right now, we'll check the problem with modal window as soon as downloads page will get back.

                • 7. Re: ThemeNotFoundException for 3 of 4 out-of-the-box Themes
                  Matthew Fischer Newbie

                  Nick,

                   

                  Thanks for posting that.

                   

                  Since we're on this thread, I was checking out the three packaged theme.  I see the following (below) when using the theme: csszend

                  I can post the bug if you think it is one.

                   

                  Here is what I have in the jsp:

                  <rich:page sidebarPosition="right" sidebarWidth="300" theme="csszend">
                  ...
                  ...

                   

                  Here is what I see in the console:

                  Jan 29, 2010 12:28:17 PM org.apache.catalina.core.StandardWrapperValve invoke
                  SEVERE: Servlet.service() for servlet Faces Servlet threw exception
                  org.ajax4jsf.resource.ResourceNotFoundException: Resource not registered : org/richfaces/renderkit/html/css/blossoms.jpg
                  at org.ajax4jsf.resource.ResourceBuilderImpl.getResource(ResourceBuilderImpl.java:406)
                  at org.ajax4jsf.resource.ResourceBuilderImpl.getResourceForKey(ResourceBuilderImpl.java:350)
                  at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:152)
                  at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
                  at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:508)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
                  at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
                  at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
                  at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
                  at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
                  at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
                  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
                  at java.lang.Thread.run(Unknown Source)
                  Jan 29, 2010 12:28:17 PM org.apache.catalina.core.StandardWrapperValve invoke
                  SEVERE: Servlet.service() for servlet Faces Servlet threw exception
                  org.ajax4jsf.resource.ResourceNotFoundException: Resource not registered : org/richfaces/renderkit/html/css/zen-bg.jpg
                  at org.ajax4jsf.resource.ResourceBuilderImpl.getResource(ResourceBuilderImpl.java:406)
                  at org.ajax4jsf.resource.ResourceBuilderImpl.getResourceForKey(ResourceBuilderImpl.java:350)
                  at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:152)
                  at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
                  at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:508)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
                  at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
                  at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
                  at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
                  at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
                  at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
                  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
                  at java.lang.Thread.run(Unknown Source)
                  Jan 29, 2010 12:28:17 PM org.apache.catalina.core.StandardWrapperValve invoke
                  SEVERE: Servlet.service() for servlet Faces Servlet threw exception
                  org.ajax4jsf.resource.ResourceNotFoundException: Resource not registered : org/richfaces/renderkit/html/css/paper-bg.jpg
                  at org.ajax4jsf.resource.ResourceBuilderImpl.getResource(ResourceBuilderImpl.java:406)
                  at org.ajax4jsf.resource.ResourceBuilderImpl.getResourceForKey(ResourceBuilderImpl.java:350)
                  at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:152)
                  at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
                  at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:508)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
                  at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
                  at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
                  at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
                  at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
                  at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
                  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
                  at java.lang.Thread.run(Unknown Source)
                  Jan 29, 2010 12:28:17 PM org.apache.catalina.core.StandardWrapperValve invoke
                  SEVERE: Servlet.service() for servlet Faces Servlet threw exception
                  org.ajax4jsf.resource.ResourceNotFoundException: Resource not registered : org/richfaces/renderkit/html/css/cr2.gif
                  at org.ajax4jsf.resource.ResourceBuilderImpl.getResource(ResourceBuilderImpl.java:406)
                  at org.ajax4jsf.resource.ResourceBuilderImpl.getResourceForKey(ResourceBuilderImpl.java:350)
                  at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:152)
                  at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
                  at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:508)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
                  at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
                  at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
                  at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
                  at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
                  at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
                  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
                  at java.lang.Thread.run(Unknown Source)

                   

                  - Matt

                   

                  • 8. Re: ThemeNotFoundException for 3 of 4 out-of-the-box Themes
                    Nick Belaevski Master

                    Hi Matt,

                     

                    Thank you for reporting the problem, I've created https://jira.jboss.org/jira/browse/RF-8335 for this.