1 Reply Latest reply on Apr 18, 2007 1:55 PM by Sergey Smirnov

    problem with JSF 1.2 and tomcat 6.0.10

    KRL SWAMY SIRIGINEEDI Newbie

      Hi,
      I have recently migrated to JSF 1.2 from 1.1 and to tomcat 6.0.10 from 5.5.

      I'm using rich faces in my application. My Application was working in following scenarios:
      1. Tomcat 5.5.23 and JSF 1.1
      2. Tomcat 6.0.10 and JSF 1.1
      3. Tomcat 6.0.10 and JSF 1.2 only when I set value "false" to "<context-param> com.sun.faces.verifyObjects" param in web.xml.

      <context-param>
       <param-name>com.sun.faces.verifyObjects</param-name>
       <param-value>false</param-value>
       </context-param>



      If I set "true" (it was true earlier for other scenarios 1, 2), it is throwing following exception:


      SEVERE: org.richfaces.component.html.HtmlTree
      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:4336)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
       at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
       at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:511)
       at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220)
       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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
       at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
       at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
       at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
       at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
       at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1398)
       at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:816)
       at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:345)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
       at java.lang.Thread.run(Thread.java:595)
      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)
       ... 37 more
      18-Apr-2007 08:49:46 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:4336)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
       at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
       at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:511)
       at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220)
       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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
       at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
       at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
       at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
       at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
       at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1398)
       at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:816)
       at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:345)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
       at java.lang.Thread.run(Thread.java:595)
      18-Apr-2007 09:33:20 org.apache.catalina.core.ApplicationContext log
      INFO: SessionListener: contextDestroyed()


      Please help me!!

      //Swamy S