13 Replies Latest reply on Aug 16, 2007 2:00 AM by Krasimir Goutcev

    Night build error

    Krasimir Goutcev Apprentice

      When i replace jars from 3.0.1. with last night snapshot i got the next error:

      SEVERE: org.richfaces.ui.component.html.HtmlInsert
      javax.faces.FacesException: java.lang.UnsupportedOperationException
       at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:521)
       at com.sun.faces.config.ConfigureListener.verifyObjects(ConfigureListener.java:1329)
       at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:415)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
       at org.apache.catalina.core.StandardService.start(StandardService.java:516)
       at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      Caused by: java.lang.UnsupportedOperationException
       at com.sun.faces.config.ConfigureListener$InitFacesContext.getViewRoot(ConfigureListener.java:1690)
       at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:113)
       at com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:277)
       at com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:978)
       at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:515)
       ... 17 more
      2007-8-15 10:15:37 com.sun.faces.config.ConfigureListener verifyObjects
      WARNING: One or more configured application objects cannot be created. See your web application logs for details.
      2007-8-15 10:15:37 org.apache.catalina.core.StandardContext listenerStart
      SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
      javax.faces.FacesException: One or more configured application objects cannot be created. See your web application logs for details.
       at com.sun.faces.config.ConfigureListener.verifyObjects(ConfigureListener.java:1403)
       at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:415)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
       at org.apache.catalina.core.StandardService.start(StandardService.java:516)
       at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      2007-8-15 10:15:37 org.apache.catalina.core.StandardContext start
      SEVERE: Error listenerStart
      


      some idea?

        • 1. Re: Night build error
          Viggo Navarsete Expert

          krasig, what exactly are you trying to do? I just synchronized with the Richfaces and ajax4jsf repositories, rebuilt everything and deployed a JSF application with at least one Richfaces component, and no errors occur.
          Are there any specific components giving this error? If yes, then I could try to replicate the problem and see what happens. Or, if you provide me a war-file I can try to deploy it in my environment.

          • 2. Re: Night build error
            Krasimir Goutcev Apprentice


            I have application that worked with official release
            Some days ago i replaced with jars from here:
            http://maven.exadel.com/org/richfaces/ui/richfaces-ui/3.1.0-SNAPSHOT/richfaces-ui-3.1.0-20070810.220131-3-bin.zip
            and app worked (with many bugs)
            And last night replaced with jars from here:
            http://maven.exadel.com/org/richfaces/ui/richfaces-ui/3.1.0-SNAPSHOT/richfaces-ui-3.1.0-20070814.220215-9-bin.zip

            and ....

            • 3. Re: Night build error
              Luke Bishop Newbie

              I am experiencing a nightly build deployment error as well. The error is different but might aid in solving this issue.

              I placed the 8/14 demo war into a Tomcat 5.5 webapps directory and started tomcat. I tried this on two different computers with the same result. I get this error.

              SEVERE: StandardWrapper.Throwable
              java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
               at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)
               at javax.faces.webapp.FacesServlet.init(FacesServlet.java:142)
               at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
               at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
               at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
               at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
               at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
               at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
               at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
               at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
               at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
               at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
               at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
               at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
               at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
               at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
               at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
               at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
               at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
               at org.apache.catalina.core.StandardService.start(StandardService.java:448)
               at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
               at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               at java.lang.reflect.Method.invoke(Unknown Source)
               at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
               at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
              Aug 15, 2007 8:29:53 AM org.apache.catalina.core.StandardContext loadOnStartup
              SEVERE: Servlet /richfaces-demo threw load() exception
              java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
               at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)
               at javax.faces.webapp.FacesServlet.init(FacesServlet.java:142)
               at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
               at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
               at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
               at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
               at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
               at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
               at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
               at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
               at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
               at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
               at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
               at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
               at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
               at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
               at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
               at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
               at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
               at org.apache.catalina.core.StandardService.start(StandardService.java:448)
               at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
               at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               at java.lang.reflect.Method.invoke(Unknown Source)
               at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
               at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
              


              • 4. Re: Night build error
                Sergey Smirnov Master

                I have deployed richfaces-demo-3.1.0-20070814.220215-8.war
                from
                http://maven.exadel.com/org/richfaces/samples/richfaces-demo/3.1.0-SNAPSHOT/
                to Tomcat 5.5.9 and Tomcat 5.5.23
                No problem in both cases.

                • 5. Re: Night build error
                  Krasimir Goutcev Apprentice

                  My error happen on tomcat 6.0.13

                  • 6. Re: Night build error
                    Krasimir Goutcev Apprentice

                    On Tomcat 5.5.23 everityng is OK

                    • 7. Re: Night build error
                      Luke Bishop Newbie

                      There is this note on the most important links page:

                      RichFaces. Most Important Links
                      
                      
                      Note: the war files of examples and demos are adopted for Tomcat 5.x
                      To work with Tomcat 6: remove el-api-xxx.jar from WEB-INF/lib
                      To work with Jboss 4.2: remove el-api-xxx.jar, jsf-api-xxxx.jar, jsf-impl-xxxx.jar from WEB-INF/
                      


                      • 8. Re: Night build error
                        Krasimir Goutcev Apprentice

                        Yew. in my lib no el-api-xxx.jar but....

                        • 9. Re: Night build error
                          Sergey Smirnov Master

                          May be a cache problem?
                          I have tried once more from scratch. Still work as usual.

                          • 10. Re: Night build error
                            Krasimir Goutcev Apprentice

                            With Tomcat 6 ?

                            • 11. Re: Night build error
                              Krasimir Goutcev Apprentice

                              Error start with:

                              INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b10-p01) for context '/FormDesign'
                              2007-8-15 19:57:36 com.sun.faces.application.ApplicationImpl createComponent
                              WARNING: JSF1004: Cannot instantiate component of type org.richfaces.ui.Insert
                               2007-8-15 19:57:36 org.apache.catalina.core.ApplicationContext log
                               SEVERE: org.richfaces.ui.component.html.HtmlInsert
                              javax.faces.FacesException: java.lang.UnsupportedOperationException
                               at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:521)
                               at com.sun.faces.config.ConfigureListener.verifyObjects(ConfigureListener.java:1329)
                               at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:415)
                               ..
                              .
                              .
                              .
                              .




                              • 12. Re: Night build error
                                Sergey Smirnov Master

                                 

                                "krasig" wrote:
                                With Tomcat 6 ?

                                Yes. Tomcat 6.0.10

                                • 13. Re: Night build error
                                  Krasimir Goutcev Apprentice

                                  Muhahahah. With RC2 everything is OK.