2 Replies Latest reply on Aug 21, 2007 9:53 AM by Ilya Shaikovsky

    SAXParser with ajax4jsf-1.1.2-20070821.000127-181.jar

    Yevgen Tester Newbie

      Hi,

      i got the latest ajax4jsf-1.1.2-20070821.000127-181.jar and RichFaces of course.
      Start tomcat 5.5 (java 1.5.09) got the exception

      INFO: XML validation disabled
      21.08.2007 11:11:55 com.sun.faces.config.rules.ComponentRule end
      WARNUNG: [ComponentRule]{faces-config/component} Merge(javax.faces.ViewRoot)
      21.08.2007 11:11:55 com.sun.faces.config.rules.ManagedBeanRule end
      WARNUNG: [ManagedBeanRule]{faces-config/managed-bean} Merge(a4j)
      21.08.2007 11:11:55 com.sun.faces.config.rules.ManagedBeanRule end
      WARNUNG: [ManagedBeanRule]{faces-config/managed-bean} Merge(a4jSkin)
      21.08.2007 11:11:55 com.sun.faces.config.rules.ComponentRule end
      WARNUNG: [ComponentRule]{faces-config/component} Merge(javax.faces.ViewRoot)
      21.08.2007 11:11:55 com.sun.faces.config.rules.ComponentRule end
      WARNUNG: [ComponentRule]{faces-config/component} Merge(org.ajax4jsf.LoadScript)
      21.08.2007 11:11:55 com.sun.faces.config.rules.ComponentRule end
      WARNUNG: [ComponentRule]{faces-config/component} Merge(org.ajax4jsf.components.Page)
      21.08.2007 11:11:55 com.sun.faces.config.rules.ComponentRule end
      WARNUNG: [ComponentRule]{faces-config/component} Merge(org.ajax4jsf.MediaOutput)
      21.08.2007 11:11:55 com.sun.faces.config.rules.ComponentRule end
      WARNUNG: [ComponentRule]{faces-config/component} Merge(org.ajax4jsf.Form)
      21.08.2007 11:11:55 com.sun.faces.config.rules.ComponentRule end
      WARNUNG: [ComponentRule]{faces-config/component} Merge(org.ajax4jsf.Log)
      21.08.2007 11:11:55 com.sun.faces.config.rules.ComponentRule end
      WARNUNG: [ComponentRule]{faces-config/component} Merge(org.ajax4jsf.Portlet)
      21.08.2007 11:11:55 com.sun.faces.config.rules.ComponentRule end
      WARNUNG: [ComponentRule]{faces-config/component} Merge(org.ajax4jsf.LoadStyle)
      21.08.2007 11:11:55 com.sun.faces.config.rules.ComponentRule end
      WARNUNG: [ComponentRule]{faces-config/component} Merge(org.ajax4jsf.Include)
      21.08.2007 11:11:55 com.sun.faces.config.rules.NavigationRuleRule end
      WARNUNG: [NavigationRuleRule]{faces-config/navigation-rule} Merge(*)
      21.08.2007 11:11:56 org.apache.commons.digester.Digester endElement
      SCHWERWIEGEND: End event threw exception
      java.lang.IllegalArgumentException: argument type mismatch
       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.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
       at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:216)
       at org.apache.commons.digester.Rule.end(Rule.java:230)
       at org.apache.commons.digester.Digester.endElement(Digester.java:1130)
       at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1241)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
       at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
       at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
       at org.apache.commons.digester.Digester.parse(Digester.java:1666)
       at org.ajax4jsf.resource.ResourceBuilderImpl.registerConfig(ResourceBuilderImpl.java:195)
       at org.ajax4jsf.resource.ResourceBuilderImpl.registerResources(ResourceBuilderImpl.java:140)
       at org.ajax4jsf.resource.ResourceBuilderImpl.init(ResourceBuilderImpl.java:211)
       at org.ajax4jsf.renderkit.ChameleonRenderKitFactory.<init>(ChameleonRenderKitFactory.java:62)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
       at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:553)
       at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:446)
       at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:249)
       at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:918)
       at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:426)
       at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:348)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
       at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
       at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
       at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
       at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
       at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
       at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
       at org.apache.catalina.core.StandardService.start(StandardService.java:450)
       at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
       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:294)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
      21.08.2007 11:11:56 org.apache.catalina.core.StandardContext start
      SCHWERWIEGEND: Error listenerStart
      


      with version ajax4jsf-1.1.1-SNAPSHOT.jar was OK
      any sugestions? ideas?

        • 1. Re: SAXParser with ajax4jsf-1.1.2-20070821.000127-181.jar
          Yevgen Tester Newbie

          Continue

          21.08.2007 11:31:00 org.apache.catalina.core.ApplicationContext log
          INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
          21.08.2007 11:31:02 org.apache.catalina.core.StandardContext listenerStart
          SCHWERWIEGEND: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
          javax.faces.FacesException: org.ajax4jsf.renderkit.ChameleonRenderKitFactory
           at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:560)
           at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:446)
           at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:249)
           at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:918)
           at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:426)
           at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:348)
           at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
           at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
           at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
           at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
           at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
           at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
           at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
           at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
           at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
           at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
           at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
           at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
           at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
           at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
           at org.apache.catalina.core.StandardService.start(StandardService.java:450)
           at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
           at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
           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:294)
           at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
          Caused by: java.lang.reflect.InvocationTargetException
           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
           at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
           at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
           at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
           at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:553)
           ... 29 more
          Caused by: javax.faces.FacesException: java.lang.IllegalArgumentException: argument type mismatch
           at org.ajax4jsf.resource.ResourceBuilderImpl.registerConfig(ResourceBuilderImpl.java:202)
           at org.ajax4jsf.resource.ResourceBuilderImpl.registerResources(ResourceBuilderImpl.java:140)
           at org.ajax4jsf.resource.ResourceBuilderImpl.init(ResourceBuilderImpl.java:211)
           at org.ajax4jsf.renderkit.ChameleonRenderKitFactory.<init>(ChameleonRenderKitFactory.java:62)
           ... 34 more
          Caused by: java.lang.IllegalArgumentException: argument type mismatch
           at org.apache.commons.digester.Digester.createSAXException(Digester.java:2919)
           at org.apache.commons.digester.Digester.createSAXException(Digester.java:2945)
           at org.apache.commons.digester.Digester.endElement(Digester.java:1133)
           at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
           at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1241)
           at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
           at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
           at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
           at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
           at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
           at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
           at org.apache.commons.digester.Digester.parse(Digester.java:1666)
           at org.ajax4jsf.resource.ResourceBuilderImpl.registerConfig(ResourceBuilderImpl.java:195)
           ... 37 more
          


          • 2. Re: SAXParser with ajax4jsf-1.1.2-20070821.000127-181.jar
            Ilya Shaikovsky Master

            please, at first - update the Rich Faces to latest version (merged one that should not be used with ajax4jsf as it contains it). And clean your caches.