1 2 Previous Next 20 Replies Latest reply: Dec 4, 2012 10:12 AM by Luis Eduardo Agudelo González RSS

Problem migrating from Richfaces 3.3.3 to Richfaces 4

Saroj Padhy Newbie

Hi,

 

I am migrating my maven based project from Richfaces3.3.3+JSF2 to Richfaces4+JSF2.

 

I have followed the article RichFaces Migration Guide. 3.3.x - 4.x Migration.

I integrated richfaces 4 in maven and able to build the project now. But now the problems are:

 

  1. In xhtml files I am not getting any richfaces components through context help (Ctrl+Space). I am using Eclipse IDE.Do I have to change some setting in xhtml files?
  2. And on running a simple test example, I am able to see the JSF components but not the richfaces components. Any more settings required in my project to add richfaces components? As of now I did not look into css style files.

 

 

I am attaching some files (web.xml, faces-config.xml, test.xhtml) and below is the tomcat server log which shows no error in library loading!

 

Thanks in advance,

Saroj

 

 

Tomcat server log:

Apr 12, 2011 7:27:22 AM org.apache.tomcat.util.digester.SetPropertiesRule begin

WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:myProject' did not find a matching property.

Apr 12, 2011 7:27:22 AM org.apache.catalina.core.AprLifecycleListener init

Apr 12, 2011 7:27:22 AM org.apache.coyote.http11.Http11Protocol init

INFO: Initializing Coyote HTTP/1.1 on http-8080

Apr 12, 2011 7:27:22 AM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 857 ms

Apr 12, 2011 7:27:22 AM org.apache.catalina.core.StandardService start

INFO: Starting service Catalina

Apr 12, 2011 7:27:22 AM org.apache.catalina.core.StandardEngine start

INFO: Starting Servlet Engine: Apache Tomcat/6.0.18

SLF4J: Class path contains multiple SLF4J bindings.

SLF4J: Found binding in [jar:file:/C:/apache-tomcat-6.0.18/wtpwebapps/webdisplay/WEB-INF/lib/slf4j-simple-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: Found binding in [jar:file:/C:/apache-tomcat-6.0.18/wtpwebapps/webdisplay/WEB-INF/lib/weld-servlet-1.1.0.Beta2.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

203 [main] INFO org.jboss.weld.Version - WELD-000900 1.1.0 (Beta2)

Apr 12, 2011 7:27:23 AM com.sun.faces.config.ConfigureListener contextInitialized

INFO: Initializing Mojarra 2.0.2 (FCS b10) for context '/myProject'

Apr 12, 2011 7:27:27 AM org.richfaces.javascript.ClientServiceConfigParser parse

WARNING: Found JavaScript function definition for class javax.validation.constraints.NotNull, but that class is not presented

Apr 12, 2011 7:27:27 AM org.richfaces.javascript.ClientServiceConfigParser parse

WARNING: Found JavaScript function definition for class org.hibernate.validator.constraints.NotEmpty, but that class is not presented

Apr 12, 2011 7:27:27 AM org.richfaces.javascript.ClientServiceConfigParser parse

WARNING: Found JavaScript function definition for class javax.validation.constraints.Size, but that class is not presented

Apr 12, 2011 7:27:27 AM org.richfaces.javascript.ClientServiceConfigParser parse

WARNING: Found JavaScript function definition for class javax.validation.constraints.Pattern, but that class is not presented

Apr 12, 2011 7:27:27 AM org.richfaces.javascript.ClientServiceConfigParser parse

WARNING: Found JavaScript function definition for class javax.validation.constraints.Min, but that class is not presented

Apr 12, 2011 7:27:27 AM org.richfaces.javascript.ClientServiceConfigParser parse

WARNING: Found JavaScript function definition for class javax.validation.constraints.Max, but that class is not presented

Apr 12, 2011 7:27:27 AM org.richfaces.javascript.ClientServiceConfigParser parse

WARNING: Found JavaScript function definition for class javax.validation.constraints.AssertTrue, but that class is not presented

Apr 12, 2011 7:27:27 AM org.richfaces.javascript.ClientServiceConfigParser parse

WARNING: Found JavaScript function definition for class javax.validation.constraints.AssertFalse, but that class is not presented

Apr 12, 2011 7:27:27 AM org.richfaces.cache.CacheManager getCacheFactory

INFO: Selected fallback cache factory

Apr 12, 2011 7:27:27 AM org.richfaces.cache.lru.LRUMapCacheFactory createCache

INFO: Creating LRUMap cache instance using parameters: {org.richfaces.skin=ruby, javax.faces.DEFAULT_SUFFIX=.xhtml}

Apr 12, 2011 7:27:27 AM org.richfaces.cache.lru.LRUMapCacheFactory createCache

INFO: Creating LRUMap cache instance of 512 items capacity

Apr 12, 2011 7:27:28 AM org.richfaces.application.InitializationListener onStart

INFO: RichFaces Core Implementation by JBoss, a division of Red Hat, Inc., version v.4.0.0.Final SVN r.22269

5015 [main] INFO org.jboss.weld.Bootstrap - WELD-000101 Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.

5453 [main] INFO org.jboss.weld.environment.servlet.Listener - Tomcat 6 detected, CDI injection will be available in Servlets and Filters. Injection into Listeners is not supported

6718 [main] WARN org.jboss.interceptor.util.InterceptionTypeRegistry - Class 'javax.ejb.PostActivate' not found, interception based on it is not enabled

6718 [main] WARN org.jboss.interceptor.util.InterceptionTypeRegistry - Class 'javax.ejb.PrePassivate' not found, interception based on it is not enabled

Apr 12, 2011 7:27:30 AM org.apache.catalina.core.ApplicationContext log

INFO: ContextListener: contextInitialized()

Apr 12, 2011 7:27:30 AM org.apache.catalina.core.ApplicationContext log

INFO: SessionListener: contextInitialized()

Apr 12, 2011 7:27:31 AM org.apache.coyote.http11.Http11Protocol start

INFO: Starting Coyote HTTP/1.1 on http-8080

Apr 12, 2011 7:27:31 AM org.apache.jk.common.ChannelSocket init

INFO: JK: ajp13 listening on /0.0.0.0:8009

Apr 12, 2011 7:27:31 AM org.apache.jk.server.JkMain start

INFO: Jk running ID=0 time=0/47  config=null

Apr 12, 2011 7:27:31 AM org.apache.catalina.startup.Catalina start

INFO: Server startup in 8899 ms

  • 1. Problem migrating from Richfaces 3.3.3 to Richfaces 4
    Martin Dubuc Newbie

    I get the same org.richfaces.javascript.ClientServiceConfigParser errors.

     

    Martin

  • 2. Problem migrating from Richfaces 3.3.3 to Richfaces 4
    Ilya Shaikovsky Master

    that page will not works properly if not included into some tamplate with proper html-h:head-h:body structure.

  • 3. Problem migrating from Richfaces 3.3.3 to Richfaces 4
    iabughosh Master

    Hi Saroj,

    for these warning messages you need to add validation-api jar & validation imple(ex:hibernate validation), and about the RichFaces comp, try adding

    <h:head></h:head> & <h:body><ui:composition ..........</h:body>  to your  page.

  • 4. Problem migrating from Richfaces 3.3.3 to Richfaces 4
    Saroj Padhy Newbie

    after adding h:head and h:body. It worked fine! Thanks!

  • 5. Re: Problem migrating from Richfaces 3.3.3 to Richfaces 4
    henry G. Newbie

    help please, my page display without  styless just text but not skin

     

    Please help ¡¡¡

  • 6. Re: Problem migrating from Richfaces 3.3.3 to Richfaces 4
    Ilya Shaikovsky Master

    as you see the solution from that thread worked for all the guys. If you using it and not see any result - provide more info about your case.

  • 7. Re: Problem migrating from Richfaces 3.3.3 to Richfaces 4
    henry G. Newbie

    thanks for answer, i download jboss-5.0.1.GA , richfaces-4.0.0.Final, and runrichfaces.war

    common-annotations.jar

    commons-beanutils.jar

    commons-collections.jar

    commons-digester.jar

    commons-logging.jar

    cssparser-0.9.5.jar

    guava-r07.jar

    jstl.jar

    richfaces-components-api-4.0.0.Final.jar

    richfaces-components-ui-4.0.0.Final.jar

    richfaces-core-api-4.0.0.Final.jar

    richfaces-core-impl-4.0.0.Final.jar

    sac-1.3.jar

    standard.jar

     

     

    10:16:29,984 INFO  [TomcatDeployment] deploy, ctxPath=/runrichfaces

    10:16:42,421 ERROR [STDERR] 02/06/2011 10:16:42 AM org.richfaces.javascript.ClientServiceConfigParser parse

    ADVERTENCIA: Found JavaScript function definition for class javax.validation.constraints.NotNull, but that class is not

    presented

    10:16:42,437 ERROR [STDERR] 02/06/2011 10:16:42 AM org.richfaces.javascript.ClientServiceConfigParser parse

    ADVERTENCIA: Found JavaScript function definition for class org.hibernate.validator.constraints.NotEmpty, but that class

    is not presented

    10:16:42,437 ERROR [STDERR] 02/06/2011 10:16:42 AM org.richfaces.javascript.ClientServiceConfigParser parse

    ADVERTENCIA: Found JavaScript function definition for class javax.validation.constraints.Size, but that class is not pre

    sented

    10:16:42,437 ERROR [STDERR] 02/06/2011 10:16:42 AM org.richfaces.javascript.ClientServiceConfigParser parse

    ADVERTENCIA: Found JavaScript function definition for class javax.validation.constraints.Pattern, but that class is not

    presented

    10:16:42,437 ERROR [STDERR] 02/06/2011 10:16:42 AM org.richfaces.javascript.ClientServiceConfigParser parse

    ADVERTENCIA: Found JavaScript function definition for class javax.validation.constraints.Min, but that class is not pres

    ented

    10:16:42,437 ERROR [STDERR] 02/06/2011 10:16:42 AM org.richfaces.javascript.ClientServiceConfigParser parse

    ADVERTENCIA: Found JavaScript function definition for class javax.validation.constraints.Max, but that class is not pres

    ented

    10:16:42,437 ERROR [STDERR] 02/06/2011 10:16:42 AM org.richfaces.javascript.ClientServiceConfigParser parse

    ADVERTENCIA: Found JavaScript function definition for class javax.validation.constraints.AssertTrue, but that class is n

    ot presented

    10:16:42,437 ERROR [STDERR] 02/06/2011 10:16:42 AM org.richfaces.javascript.ClientServiceConfigParser parse

    ADVERTENCIA: Found JavaScript function definition for class javax.validation.constraints.AssertFalse, but that class is

    not presented

    10:16:42,453 ERROR [STDERR] 02/06/2011 10:16:42 AM org.richfaces.cache.CacheManager getCacheFactory

    INFO: Selected fallback cache factory

    10:16:42,468 ERROR [STDERR] 02/06/2011 10:16:42 AM org.richfaces.cache.lru.LRUMapCacheFactory createCache

    INFO: Creating LRUMap cache instance using parameters: {org.richfaces.CONTROL_SKINNING=enable, com.sun.faces.duplicateJA

    RPattern=^tmp\d+(\S*\.jar), org.richfaces.SKIN=ruby, com.sun.faces.injectionProvider=org.jboss.web.jsf.integration.injec

    tion.JBossDelegatingInjectionProvider, javax.servlet.jsp.jstl.fmt.localizationContext=resources.application, javax.faces

    .STATE_SAVING_METHOD=server, javax.faces.DEFAULT_SUFFIX=.xhtml}

    10:16:42,484 ERROR [STDERR] 02/06/2011 10:16:42 AM org.richfaces.cache.lru.LRUMapCacheFactory createCache

    INFO: Creating LRUMap cache instance of 512 items capacity

    10:16:42,515 ERROR [STDERR] 02/06/2011 10:16:42 AM org.richfaces.application.InitializationListener onStart

    INFO:  by , version v. SVN r.

    10:16:42,734 INFO  [Http11Protocol] Arrancando Coyote HTTP/1.1 en puerto http-127.0.0.1-8080

    10:16:42,765 INFO  [AjpProtocol] Arrancando Coyote AJP/1.3 en ajp-127.0.0.1-8009

     

    Thats all, them display in the browser http://localhost:8080/runrichfaces/

    display the page without styless dont have skin

  • 8. Re: Problem migrating from Richfaces 3.3.3 to Richfaces 4
    Ilya Shaikovsky Master

    do not even looked anywhere except your template page I see that you ignored previous comments there. please recheck thread.

     

    after adding h:head and h:body. It worked fine! Thanks!

  • 9. Re: Problem migrating from Richfaces 3.3.3 to Richfaces 4
    henry G. Newbie

    I probe h:head and h:body.

     

    I changed but same display

     

     

    the page no have style, that is my question how  can see skin o stylles just show html wihout style

     

     

     

     

     

    In server log i can see:

     

    14:52:17,812 ERROR [STDERR] 02/06/2011 02:52:17 PM org.richfaces.javascript.ClientServiceConfigParser parse

    ADVERTENCIA: Found JavaScript function definition for class javax.validation.constraints.NotNull, but that class is not

    presented

     

     

    Please HELP ¡¡

  • 10. Re: Problem migrating from Richfaces 3.3.3 to Richfaces 4
    henry G. Newbie

    the file index.xhtml is bad, thanks for all¡¡¡¡¡¡¡¡¡¡¡¡¡¡

  • 11. Re: Problem migrating from Richfaces 3.3.3 to Richfaces 4
    James Bragg Newbie

    So does this mean that in order to us Richfaces 4.x you HAVE to use templates?

     

    James.

  • 12. Re: Problem migrating from Richfaces 3.3.3 to Richfaces 4
    Luis Eduardo Agudelo González Newbie

    Please I need a help... I just Migrate from JSF 1.2 to JSF 2.0 (Mojarra) and RichFaces 3.3.3Final to RF 4.2.3 but my application dont call the backing bean method to an action in a commandButton. This the sources part of button:

     

    <a4j:commandButton type="submit" value="Aceptar"

                                                                action="#{InicioSesion_1.consultarProcesos}"

                                                                styleClass="submit"

                                                                render="ErrorUsernamePanel,ErrorPasswordPanel,errorSummary,idProcesoSelect"

                                                                onclick="this.disabled= true;" oncomplete="this.disabled = false;">

                                                                </a4j:commandButton>

     

    When I start the server the log only show this...

     

     

    INFO: Starting Servlet Engine: Apache Tomcat/6.0.13

    2/12/2012 08:09:23 PM org.apache.catalina.loader.WebappClassLoader validateJarFile

    INFO: validateJarFile(C:\Users\Luis Agudelo\Workspaces\MyEclipse\.metadata\.me_tcat\webapps\ProcesoAcreditacion\WEB-INF\lib\javaee-api-6.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

    2/12/2012 08:09:24 PM com.sun.faces.config.ConfigureListener contextInitialized

    INFO: Inicializando Mojarra 2.0.2 (FCS b10) para el contexto '/ProcesoAcreditacion'

    log4j:ERROR Could not find value for key log4j.appender.LOGFILE

    log4j:ERROR Could not instantiate appender named "LOGFILE".

    log4j:ERROR Could not find value for key log4j.appender.LOGFILE

    log4j:ERROR Could not instantiate appender named "LOGFILE".

    log4j:ERROR Could not find value for key log4j.appender.LOGFILE

    log4j:ERROR Could not instantiate appender named "LOGFILE".

    2/12/2012 08:09:32 PM org.primefaces.webapp.PostConstructApplicationEventListener processEvent

    INFO: Running on PrimeFaces 3.4.2

    2/12/2012 08:09:33 PM org.richfaces.javascript.ClientServiceConfigParser parse

    ADVERTENCIA: Found JavaScript function definition for class javax.validation.constraints.NotNull, but that class is not presented

    2/12/2012 08:09:33 PM org.richfaces.javascript.ClientServiceConfigParser parse

    ADVERTENCIA: Found JavaScript function definition for class org.hibernate.validator.constraints.NotEmpty, but that class is not presented

    2/12/2012 08:09:33 PM org.richfaces.javascript.ClientServiceConfigParser parse

    ADVERTENCIA: Found JavaScript function definition for class javax.validation.constraints.Size, but that class is not presented

    2/12/2012 08:09:33 PM org.richfaces.javascript.ClientServiceConfigParser parse

    ADVERTENCIA: Found JavaScript function definition for class javax.validation.constraints.Pattern, but that class is not presented

    2/12/2012 08:09:33 PM org.richfaces.javascript.ClientServiceConfigParser parse

    ADVERTENCIA: Found JavaScript function definition for class javax.validation.constraints.Min, but that class is not presented

    2/12/2012 08:09:33 PM org.richfaces.javascript.ClientServiceConfigParser parse

    ADVERTENCIA: Found JavaScript function definition for class javax.validation.constraints.Max, but that class is not presented

    2/12/2012 08:09:33 PM org.richfaces.javascript.ClientServiceConfigParser parse

    ADVERTENCIA: Found JavaScript function definition for class javax.validation.constraints.AssertTrue, but that class is not presented

    2/12/2012 08:09:33 PM org.richfaces.javascript.ClientServiceConfigParser parse

    ADVERTENCIA: Found JavaScript function definition for class javax.validation.constraints.AssertFalse, but that class is not presented

    2/12/2012 08:09:33 PM org.richfaces.cache.CacheManager getCacheFactory

    INFO: Selected fallback cache factory

    2/12/2012 08:09:33 PM org.richfaces.cache.lru.LRUMapCacheFactory createCache

    INFO: Creating LRUMap cache instance using parameters: {javax.faces.DEVELOPMENT=true, javax.faces.CONFIG_FILES=/WEB-INF/faces-config.xml,/WEB-INF/faces-managed-beans.xml,/WEB-INF/faces-navigation.xml, org.richfaces.skin=blueSky, com.sun.faces.validateXml=true, javax.faces.FACELETS_REFRESH_PERIOD=2, com.sun.faces.verifyObjects=false, log4jConfigLocation=/WEB-INF/classes/log4j.properties, org.richfaces.enableControlSkinning=true, javax.faces.FACELETS_SKIP_COMMENTS=false, contextConfigLocation=/WEB-INF/applicationContext*.xml, javax.faces.STATE_SAVING_METHOD=client, javax.faces.DEFAULT_SUFFIX=.xhtml}

    2/12/2012 08:09:33 PM org.richfaces.cache.lru.LRUMapCacheFactory createCache

    INFO: Creating LRUMap cache instance of 512 items capacity

    2/12/2012 08:09:33 PM org.richfaces.application.InitializationListener onStart

    INFO: RichFaces Core Implementation by JBoss by Red Hat, version 4.2.3.Final

    2/12/2012 08:09:33 PM org.apache.catalina.core.ApplicationContext log

    INFO: Set web app root system property: 'webapp.root' = [C:\Users\Luis Agudelo\Workspaces\MyEclipse\.metadata\.me_tcat\webapps\ProcesoAcreditacion\]

    2/12/2012 08:09:33 PM org.apache.catalina.core.ApplicationContext log

     

     

     

    Any idea?

    Thanks!!!

  • 13. Re: Problem migrating from Richfaces 3.3.3 to Richfaces 4
    henry G. Newbie

    Hola Luis Eduardo, puede que sea la version del jboss y las librerias de jsf2 q hay que actulizarlas que version del jboss usas??

  • 14. Re: Problem migrating from Richfaces 3.3.3 to Richfaces 4
    Luis Eduardo Agudelo González Newbie

    Hola Henry,

     

    El server que estoy utilizando es el Tomcat 6 que viene embebido en MyEclipse 7.5. Te cuento que los metodos get de las propiedades del backing bean si se ejecutan cuando carga la vista, pero los action no.

1 2 Previous Next