12 Replies Latest reply on Sep 14, 2012 5:15 AM by Ryan Li

    Need help on setting up richfaces 4.2.2

    Ryan Li Newbie

      hello,

       

      I need some help on setting up richfaces 4. I m using eclipse indigo.

      after putting the richfaces*.jar into build path and recompiling.

      the app still passed through all richfaces tags, not rendered.

      it even passed through the lines: xmlns:a4j and xmlns:rich

      what did I miss in the process? Could you please give me a hint a walk through even better?

      I checked the documentation, they say there is no need to do configuration in any xml, right?

      below is the page that didn't render richfaces. Please give your help! thanks.

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

       

      <html xmlns="http://www.w3.org/1999/xhtml"

          xmlns:ui="http://java.sun.com/jsf/facelets"

          xmlns:h="http://java.sun.com/jsf/html"

          xmlns:f="http://java.sun.com/jsf/core"

          xmlns:a4j="http://richfaces.org/a4j"

          xmlns:rich="http://richfaces.org/rich">

       

      <h:head>

          <title>h2o ImageBase</title>

      </h:head>

      <h:body>

          <rich:popupPanel id="login">

              <f:facet name="header">

                  Sign in

              </f:facet>

              <h:panelGrid columns="1">

                  <h:outputText value="email/password"/>

                  <h:inputText value="#{hc.user.email}" id="userName"/>

                  <h:inputSecret value="#{hc.user.password}" id="password"/>

              </h:panelGrid>

              <a4j:commandButton value="sign in" action="#{hc.signIn()}"/>

              <h:link outcome="register.xhtml" value="sign up"/>

          </rich:popupPanel>

      </h:body>

      </html>

        • 1. Re: Need help on setting up richfaces 4.2.2
          iabughosh Master

          please post more data about your environment, AS,web.xml,WEB-INF/lib content ...etc.

           

          regards.

          • 2. Re: Need help on setting up richfaces 4.2.2
            Brendan Healey Master

            Does JSF work without Richfaces?

             

            Regards,

            Brendan.

             

             

             


            Freelance Java Enterprise Developer


            JSF Richfaces Ajax Java 6/7 (scjp) EE 6 HTML CSS JavaScript jQuery MySQL JPA Hibernate Eclipselink

            Spring Oracle SQL JPQL Sybase EJB CDI Glassfish Apache JAX-RS Primefaces UNIX Paypal and more..

            • 3. Re: Need help on setting up richfaces 4.2.2
              Ryan Li Newbie

              JSF does work. it renders all h and f tags as usual

               

              Directory: C:\Users\iblis\workspace\h2o\webcontent\web-inf\lib

               

               

              Mode            LastWriteTime Length Name
              ----            ------------- ------ ----
              -a---     11/9/2011  11:00 PM 315805 commons-lang3-3.1.jar
              -a---     5/14/2012  12:01 AM  70358 richfaces-components-api-4.2.2.Final.jar
              -a---     5/14/2012  12:01 AM6417675 richfaces-components-ui-4.2.2.Final.jar
              -a---     5/14/2012  12:01 AM 145915 richfaces-core-api-4.2.2.Final.jar
              -a---     5/14/2012  12:01 AM 464753 richfaces-core-impl-4.2.2.Final.jar

               

              windows 7 ultimate, jdk1.7, jboss as 7.1.1.Final

               

               

              <?xml version='1.0' encoding='UTF-8'?>

              <web-app version="2.5"

                               xmlns="http://java.sun.com/xml/ns/javaee"

                               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                               xsi:schemaLocation="http://java.sun.com/xml/ns/javaee

                               http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

               

                      <servlet>

                              <servlet-name>Faces Servlet</servlet-name>

                              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

                              <load-on-startup>1</load-on-startup>

                      </servlet>

                      <servlet-mapping>

                              <servlet-name>Faces Servlet</servlet-name>

                              <url-pattern>*.faces</url-pattern>

                      </servlet-mapping>

                      <context-param>

                            <param-name>org.richfaces.skin</param-name>

                            <param-value>blueSky</param-value>

                      </context-param>

                      <welcome-file-list>

                              <welcome-file>index.faces</welcome-file>

                      </welcome-file-list>

               

              </web-app>

              • 4. Re: Need help on setting up richfaces 4.2.2
                Brendan Healey Master

                As you've got a v2.5 servlet container you should need these lines to be added to web.xml:

                 

                <servlet>

                        <servlet-name>Resource Servlet</servlet-name>

                        <servlet-class>org.richfaces.webapp.ResourceServlet</servlet-class>

                        <load-on-startup>1</load-on-startup>

                </servlet>

                <servlet-mapping>

                        <servlet-name>Resource Servlet</servlet-name>

                        <url-pattern>/org.richfaces.resources/*</url-pattern>

                </servlet-mapping>

                 

                I'm not sure this will solve the problem though, anything in the server log?

                 

                Can you also try these (maybe one at a time to see which if any has any effect):

                 

                <context-param>

                        <param-name>com.sun.faces.enableMissingResourceLibraryDetection</param-name>

                        <param-value>true</param-value>

                </context-param>

                <context-param>

                        <param-name>javax.faces.DEFAULT_SUFFIX</param-name>

                        <param-value>.faces</param-value>

                </context-param>

                <context-param>

                        <param-name>javax.faces.FACELETS_VIEW_MAPPINGS</param-name>

                        <param-value>*.faces</param-value>

                </context-param>

                <context-param>

                        <param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>

                        <param-value>true</param-value>

                </context-param>

                 

                 

                Regards,

                Brendan.

                 

                p.s. I suspect Ibrahim's suggestion is more likely to solve it!

                 

                 


                Freelance Java Enterprise Developer


                JSF Richfaces Ajax Java 6/7 (scjp) EE 6 HTML CSS JavaScript jQuery MySQL JPA Hibernate Eclipselink

                Spring Oracle SQL JPQL Sybase EJB CDI Glassfish Apache JAX-RS Primefaces UNIX Paypal and more..

                • 5. Re: Need help on setting up richfaces 4.2.2
                  iabughosh Master

                  Hello Ryan,

                  JBoss AS 7.1.1 have guava,sac,css-parser jars but it doesn't explore or include them on your deployments automatically, try adding these jars to your application or make the server provide them for you :

                   

                  under META-INF/Manifest.mf add this line:

                  Dependencies: com.google.guava,org.w3c.css.sac, net.sourceforge.cssparser

                   

                  regards.

                  • 6. Re: Need help on setting up richfaces 4.2.2
                    Ryan Li Newbie

                    adding <servlet> and <servlet-mapping> ain't  work. I also tried changing version to 3.0. no luck

                    the stack trace did complain something with no resourceServlet. could you tell me how to fix it?

                    stack trace:

                     

                     

                    20:31:21,209 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

                    20:31:21,535 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

                    20:31:21,638 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

                    20:31:23,141 INFO  [org.xnio] XNIO Version 3.0.3.GA

                    20:31:23,142 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

                    20:31:23,154 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

                    20:31:23,165 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

                    20:31:23,204 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

                    20:31:23,208 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem

                    20:31:23,294 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem

                    20:31:23,295 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem

                    20:31:23,314 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem

                    20:31:23,375 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

                    20:31:23,513 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

                    20:31:23,523 INFO  [org.jboss.as.security] (MSC service thread 1-3) JBAS013100: Current PicketBox version=4.0.7.Final

                    20:31:23,577 INFO  [org.jboss.as.naming] (MSC service thread 1-4) JBAS011802: Starting Naming Service

                    20:31:23,579 INFO  [org.jboss.as.connector] (MSC service thread 1-4) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

                    20:31:23,756 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class oracle.jdbc.OracleDriver (version 11.2)

                    20:31:23,762 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

                    20:31:23,801 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400: Bound mail session [java:jboss/mail/Default]

                    20:31:23,807 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400: Bound mail session [java:jboss/mail/Gmail]

                    20:31:24,018 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-4) JBoss Web Services - Stack CXF Server 4.0.2.GA

                    20:31:24,525 WARN  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-4) JBAS015005: Reliable deployment behaviour is not possible when auto-deployment of exploded content is enabled (i.e. deployment without use of ".dodeploy"' marker files). Configuration of auto-deployment of exploded content is not recommended in any situation where reliability is desired. Configuring the deployment scanner's auto-deploy-exploded setting to "false" is recommended.

                    20:31:24,528 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-4) JBAS015012: Started FileSystemDeploymentService for directory C:\jboss-as-7.1.1.Final\standalone\deployments

                    20:31:24,612 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-4) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080

                    20:31:24,661 INFO  [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on /127.0.0.1:9999

                    20:31:24,666 INFO  [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on localhost/127.0.0.1:4447

                    20:31:24,824 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

                    20:31:24,824 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010400: Bound data source [java:/OraclePool]

                    20:31:24,869 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "h2o.war"

                    20:31:25,171 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) JBAS011401: Read persistence.xml for h2oImages

                    20:31:25,226 ERROR [org.jboss.web] (MSC service thread 1-4) JBAS018213: Failed to parse "/C:/jboss-as-7.1.1.Final/standalone/deployments/h2o.war/WEB-INF/faces-config.xml", managed beans defined in this file will not be available

                    20:31:25,332 INFO  [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016002: Processing weld deployment h2o.war

                    20:31:25,341 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-4) JNDI bindings for session bean named UserEJB in deployment unit deployment "h2o.war" are as follows:

                     

                        java:global/h2o/UserEJB!com.h2o.UserEJB

                        java:app/h2o/UserEJB!com.h2o.UserEJB

                        java:module/UserEJB!com.h2o.UserEJB

                        java:global/h2o/UserEJB

                        java:app/h2o/UserEJB

                        java:module/UserEJB

                     

                    20:31:25,377 WARN  [org.jboss.as.ee] (MSC service thread 1-4) JBAS011006: Not installing optional component org.richfaces.webapp.ResourceServlet due to exception: java.lang.ClassNotFoundException: org.richfaces.webapp.ResourceServlet from [Module "deployment.h2o.war:main" from Service Module Loader]

                        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]

                        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

                        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

                        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

                        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

                        at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_04]

                        at java.lang.Class.forName(Class.java:264) [rt.jar:1.7.0_04]

                        at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                        at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:79)

                        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_04]

                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_04]

                        at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_04]

                     

                    20:31:25,583 INFO  [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016005: Starting Services for CDI deployment: h2o.war

                    20:31:25,668 INFO  [org.jboss.weld.Version] (MSC service thread 1-4) WELD-000900 1.1.5 (AS71)

                    20:31:25,738 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) JBAS011402: Starting Persistence Unit Service 'h2o.war#h2oImages'

                    20:31:26,058 INFO  [org.hibernate.annotations.common.Version] (MSC service thread 1-4) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}

                    20:31:26,064 INFO  [org.hibernate.Version] (MSC service thread 1-4) HHH000412: Hibernate Core {4.0.1.Final}

                    20:31:26,068 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-4) HHH000206: hibernate.properties not found

                    20:31:26,071 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-4) HHH000021: Bytecode provider name : javassist

                    20:31:26,114 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-4) HHH000204: Processing PersistenceUnitInfo [

                        name: h2oImages

                        ...]

                    20:31:26,404 INFO  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-4) HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider

                    20:31:26,853 INFO  [org.hibernate.dialect.Dialect] (MSC service thread 1-4) HHH000400: Using dialect: org.hibernate.dialect.Oracle10gDialect

                    20:31:26,877 INFO  [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (MSC service thread 1-4) HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory

                    20:31:26,883 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-4) HHH000397: Using ASTQueryTranslatorFactory

                    20:31:26,930 INFO  [org.hibernate.validator.util.Version] (MSC service thread 1-4) Hibernate Validator 4.2.0.Final

                    20:31:27,312 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-4) HHH000227: Running hbm2ddl schema export

                    20:31:27,319 INFO  [stdout] (MSC service thread 1-4) Hibernate: drop table ImageBase cascade constraints

                     

                    20:31:27,417 INFO  [stdout] (MSC service thread 1-4) Hibernate: drop table h2oUser cascade constraints

                     

                    20:31:27,460 INFO  [stdout] (MSC service thread 1-4) Hibernate: drop sequence hibernate_sequence

                     

                    20:31:27,465 INFO  [stdout] (MSC service thread 1-4) Hibernate: create table ImageBase (id number(19,0) not null, imgFile varchar2(255 char) unique, imgOriginalFile varchar2(255 char), USER_EMAIL varchar2(255 char), USER_ID number(19,0), primary key (id))

                     

                    20:31:27,488 INFO  [stdout] (MSC service thread 1-4) Hibernate: create table h2oUser (email varchar2(255 char) not null, H2O_ID number(19,0) not null, activated number(1,0) not null, avatorPath varchar2(255 char), basePath varchar2(255 char), createDate date, nickName varchar2(255 char) not null, password varchar2(255 char) not null, primary key (email, H2O_ID))

                     

                    20:31:27,535 INFO  [stdout] (MSC service thread 1-4) Hibernate: alter table ImageBase add constraint FK43121EAC9011D91 foreign key (USER_EMAIL, USER_ID) references h2oUser

                     

                    20:31:27,549 INFO  [stdout] (MSC service thread 1-4) Hibernate: create sequence hibernate_sequence start with 1 increment by 1

                     

                    20:31:27,559 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-4) HHH000230: Schema export complete

                    20:31:27,717 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016008: Starting weld service for deployment h2o.war

                    20:31:28,982 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-4) Initializing Mojarra 2.1.7-jbossorg-1 (20120227-1401) for context '/h2o'

                    20:31:31,079 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/h2o]] (MSC service thread 1-4) Marking servlet Resource Servlet as unavailable

                    20:31:31,080 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/h2o]] (MSC service thread 1-4) Servlet /h2o threw load() exception: java.lang.ClassNotFoundException: org.richfaces.webapp.ResourceServlet from [Module "deployment.h2o.war:main" from Service Module Loader]

                        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

                        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

                        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                        at org.jboss.as.web.deployment.WebInjectionContainer.newInstance(WebInjectionContainer.java:72) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1156) [jbossweb-7.0.13.Final.jar:]

                        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]

                        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:]

                        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]

                        at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_04]

                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_04]

                        at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_04]

                     

                    20:31:31,102 INFO  [org.jboss.web] (MSC service thread 1-4) JBAS018210: Registering web context: /h2o

                    20:31:31,109 INFO  [org.jboss.as] (MSC service thread 1-1) JBAS015951: Admin console listening on http://127.0.0.1:9990

                    20:31:31,110 INFO  [org.jboss.as] (MSC service thread 1-1) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 10477ms - Started 211 of 289 services (76 services are passive or on-demand)

                    20:31:31,262 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "h2o.war"

                    • 7. Re: Need help on setting up richfaces 4.2.2
                      Brendan Healey Master

                      Failed to parse... faces-config.xml doesn't look too good, what's in there?

                      • 8. Re: Need help on setting up richfaces 4.2.2
                        Ryan Li Newbie

                        hello Ghosh,

                        Thank your for reply.

                        I copied the dependencies you mentioned from jboss*/modules to /web-inf/lib

                        and add them to build path

                        now the app complains Error Parsing /index.faces: Premature end of file

                         

                         

                         

                         

                        20:52:43,484 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/h2o].[Faces Servlet]] (http-localhost-127.0.0.1-8080-1) Servlet.service() for servlet Faces Servlet threw exception: javax.faces.view.facelets.FaceletException: Error Parsing /index.faces: Premature end of file.

                            at com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:436) [jsf-impl-2.1.7-jbossorg-2.jar:]

                            at com.sun.faces.facelets.compiler.SAXCompiler.doMetadataCompile(SAXCompiler.java:419) [jsf-impl-2.1.7-jbossorg-2.jar:]

                            at com.sun.faces.facelets.compiler.Compiler.metadataCompile(Compiler.java:130) [jsf-impl-2.1.7-jbossorg-2.jar:]

                            at com.sun.faces.facelets.impl.DefaultFaceletFactory.createMetadataFacelet(DefaultFaceletFactory.java:327) [jsf-impl-2.1.7-jbossorg-2.jar:]

                            at com.sun.faces.facelets.impl.DefaultFaceletFactory.access$200(DefaultFaceletFactory.java:93) [jsf-impl-2.1.7-jbossorg-2.jar:]

                            at com.sun.faces.facelets.impl.DefaultFaceletFactory$2.newInstance(DefaultFaceletFactory.java:166) [jsf-impl-2.1.7-jbossorg-2.jar:]

                            at com.sun.faces.facelets.impl.DefaultFaceletFactory$2.newInstance(DefaultFaceletFactory.java:164) [jsf-impl-2.1.7-jbossorg-2.jar:]

                            at com.sun.faces.facelets.impl.DefaultFaceletCache$2.newInstance(DefaultFaceletCache.java:94) [jsf-impl-2.1.7-jbossorg-2.jar:]

                            at com.sun.faces.facelets.impl.DefaultFaceletCache$2.newInstance(DefaultFaceletCache.java:89) [jsf-impl-2.1.7-jbossorg-2.jar:]

                            at com.sun.faces.util.ExpiringConcurrentCache$1.call(ExpiringConcurrentCache.java:99) [jsf-impl-2.1.7-jbossorg-2.jar:]

                            at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_04]

                            at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_04]

                            at com.sun.faces.util.ExpiringConcurrentCache.get(ExpiringConcurrentCache.java:114) [jsf-impl-2.1.7-jbossorg-2.jar:]

                            at com.sun.faces.facelets.impl.DefaultFaceletCache.getViewMetadataFacelet(DefaultFaceletCache.java:143) [jsf-impl-2.1.7-jbossorg-2.jar:]

                            at com.sun.faces.facelets.impl.DefaultFaceletCache.getViewMetadataFacelet(DefaultFaceletCache.java:62) [jsf-impl-2.1.7-jbossorg-2.jar:]

                            at com.sun.faces.facelets.impl.DefaultFaceletFactory.getMetadataFacelet(DefaultFaceletFactory.java:260) [jsf-impl-2.1.7-jbossorg-2.jar:]

                            at com.sun.faces.facelets.impl.DefaultFaceletFactory.getMetadataFacelet(DefaultFaceletFactory.java:209) [jsf-impl-2.1.7-jbossorg-2.jar:]

                            at com.sun.faces.application.view.ViewMetadataImpl.createMetadataView(ViewMetadataImpl.java:114) [jsf-impl-2.1.7-jbossorg-2.jar:]

                            at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:233) [jsf-impl-2.1.7-jbossorg-2.jar:]

                            at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.7-jbossorg-2.jar:]

                            at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116) [jsf-impl-2.1.7-jbossorg-2.jar:]

                            at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-2.1.7-jbossorg-2.jar:]

                            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]

                            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

                            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                            at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

                            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

                            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

                            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

                            at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

                            at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

                            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

                            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

                            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

                            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

                            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

                            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

                            at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_04]

                         

                         

                         

                         

                         

                         

                         

                        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

                            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

                         

                        <html xmlns="http://www.w3.org/1999/xhtml"

                            xmlns:ui="http://java.sun.com/jsf/facelets"

                            xmlns:h="http://java.sun.com/jsf/html"

                            xmlns:f="http://java.sun.com/jsf/core"

                            xmlns:a4j="http://richfaces.org/a4j"

                            xmlns:rich="http://richfaces.org/rich">

                         

                        <h:head>

                            <title>h2o ImageBase</title>

                        </h:head>

                        <h:body>

                            <rich:popupPanel id="login">

                                <f:facet name="header">

                                    Sign in

                                </f:facet>

                                <h:form>

                                    <h:panelGrid columns="1">

                                        <h:outputText value="email/password"/>

                                        <h:inputText value="#{hc.user.email}" id="userName"/>

                                        <h:inputSecret value="#{hc.user.password}" id="password"/>

                                    </h:panelGrid>

                                    <a4j:commandButton value="sign in" action="#{hc.signIn()}"/>

                                    <h:link outcome="register.xhtml" value="sign up"/>

                                </h:form>

                            </rich:popupPanel>

                        </h:body>

                        </html>

                        • 9. Re: Need help on setting up richfaces 4.2.2
                          Ryan Li Newbie

                          hello Brendan,

                          there is no nothing in face-config.xml. I have deleted the file

                          • 10. Re: Need help on setting up richfaces 4.2.2
                            Joe Padula Novice

                            Hi Ryan,

                            Here's what the readme.txt says:

                            You don't need to modify web.xml or faces-config.xml as with previous versions of RichFaces,

                            except for a4j:push component that requires additional configuration

                            in web.xml

                            When you download Richfaces, take a look at the examples. You still need to have a faces-config.xml. I think they just mean there is no special modifications needed since Richfaces 3.x.

                             

                            Message was edited by: Joseph Padula

                            • 11. Re: Need help on setting up richfaces 4.2.2
                              liumin hu Master

                              hi,

                               

                              you can always download the jboss tool plugin to creat a RF example project to check what you need.

                              • 12. Re: Need help on setting up richfaces 4.2.2
                                Ryan Li Newbie

                                i download jboss tools and start over a project from scratch. it works now.

                                Thanks everyone.