5 Replies Latest reply on Mar 18, 2009 8:14 AM by Ilya Shaikovsky

    Cant install richfaces

    Bram Pramono Newbie

      Hi guys, I have been tryin to install richfaces for 2 days now. I have an existing project with JSF/Facelets/Myfaces and hopefully I can ajax functions in it.

      But I can't seem to get it right. If I add richfaces-api,richfaces-impl, and richfaces-ui, I get this error

      [ERROR] 11:23:10 [org.apache.commons.logging.impl.SLF4JLog.error():171] Parse Error at line 2 column
       14: Document is invalid: no grammar found.
      org.xml.sax.SAXParseException: Document is invalid: no grammar found.
       at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Sour
      ce)
       at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source
      )
       at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElement
      Hook(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.nex
      t(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
      
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Sour
      ce)
       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
       at org.apache.commons.digester.Digester.parse(Digester.java:1572)
       at org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.getFacesConfig(Diges
      terFacesConfigUnmarshallerImpl.java:183)
       at org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(FacesConfigurator.java
      :251)
       at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:129)
       at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.
      java:69)
       at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContext
      Listener.java:52)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
       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(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:288)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      [ERROR] 11:23:10 [org.apache.commons.logging.impl.SLF4JLog.error():171] Parse Error at line 2 column
       14: Document root element "faces-config", must match DOCTYPE root "null".
      org.xml.sax.SAXParseException: Document root element "faces-config", must match DOCTYPE root "null".
       at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Sour
      ce)
       at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source
      )
       at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElement
      Hook(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.nex
      t(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
      
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Sour
      ce)
       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
       at org.apache.commons.digester.Digester.parse(Digester.java:1572)
       at org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.getFacesConfig(Diges
      terFacesConfigUnmarshallerImpl.java:183)
       at org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(FacesConfigurator.java
      :251)
       at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:129)
       at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.
      java:69)
       at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContext
      Listener.java:52)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
       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(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:288)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      [ERROR] 11:23:10 [org.apache.commons.logging.impl.SLF4JLog.error():171] Parse Error at line 2 column
       14: Document is invalid: no grammar found.
      org.xml.sax.SAXParseException: Document is invalid: no grammar found.
       at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Sour
      ce)
       at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source
      )
       at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElement
      Hook(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.nex
      t(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
      
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Sour
      ce)
       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
       at org.apache.commons.digester.Digester.parse(Digester.java:1572)
       at org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.getFacesConfig(Diges
      terFacesConfigUnmarshallerImpl.java:183)
       at org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(FacesConfigurator.java
      :251)
       at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:129)
       at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.
      java:69)
       at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContext
      Listener.java:52)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
       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(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:288)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      [ERROR] 11:23:10 [org.apache.commons.logging.impl.SLF4JLog.error():171] Parse Error at line 2 column
       14: Document root element "faces-config", must match DOCTYPE root "null".
      org.xml.sax.SAXParseException: Document root element "faces-config", must match DOCTYPE root "null".
       at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Sour
      ce)
       at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source
      )
       at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElement
      Hook(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.nex
      t(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
      
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Sour
      ce)
       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
       at org.apache.commons.digester.Digester.parse(Digester.java:1572)
       at org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.getFacesConfig(Diges
      terFacesConfigUnmarshallerImpl.java:183)
       at org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(FacesConfigurator.java
      :251)
       at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:129)
       at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.
      java:69)
       at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContext
      Listener.java:52)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
       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(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:288)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      16-Mar-2009 11:23:10 org.apache.catalina.core.StandardContext listenerStart
      SEVERE: Exception sending context initialized event to listener instance of class org.apache.myfaces
      .webapp.StartupServletContextListener
      java.lang.NoClassDefFoundError: javax/faces/component/ActionSource2
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(Unknown Source)
       at java.security.SecureClassLoader.defineClass(Unknown Source)
       at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1817)
       at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1325)
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
       at java.lang.ClassLoader.loadClassInternal(Unknown Source)
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(Unknown Source)
       at java.security.SecureClassLoader.defineClass(Unknown Source)
       at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1817)
       at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1325)
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
       at java.lang.ClassLoader.loadClassInternal(Unknown Source)
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Unknown Source)
       at org.apache.myfaces.shared_impl.util.ClassUtils.classForName(ClassUtils.java:131)
       at org.apache.myfaces.shared_impl.util.ClassUtils.simpleClassForName(ClassUtils.java:157)
       at org.apache.myfaces.application.ApplicationImpl.addComponent(ApplicationImpl.java:269)
       at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:479)
       at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:141)
       at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.
      java:69)
       at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContext
      Listener.java:52)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
       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(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:288)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      Caused by: java.lang.ClassNotFoundException: javax.faces.component.ActionSource2
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
       at java.lang.ClassLoader.loadClassInternal(Unknown Source)
       ... 40 more
      


      pls help, thank you