0 Replies Latest reply on Oct 5, 2013 1:36 PM by dr_galle_m

    Log entry regarding org.richfaces.javascript.ClientServiceConfigParser in console while migrating to Richfaces 4

    dr_galle_m Newbie

      Hello,

       

      as beginner in Richfaces4 I started to migrate a previous webapp to current Richfaces version.

       

      Even before I requested my server for a page I found following entries in the console:

       

      Okt 05, 2013 6:50:12 PM org.richfaces.javascript.ClientServiceConfigParser parse

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

      Okt 05, 2013 6:50:12 PM org.richfaces.javascript.ClientServiceConfigParser parse

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

      Okt 05, 2013 6:50:12 PM org.richfaces.javascript.ClientServiceConfigParser parse

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

      Okt 05, 2013 6:50:12 PM org.richfaces.javascript.ClientServiceConfigParser parse

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

      Okt 05, 2013 6:50:12 PM org.richfaces.javascript.ClientServiceConfigParser parse

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

      Okt 05, 2013 6:50:12 PM org.richfaces.javascript.ClientServiceConfigParser parse

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

      Okt 05, 2013 6:50:12 PM org.richfaces.javascript.ClientServiceConfigParser parse

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

      Okt 05, 2013 6:50:12 PM org.richfaces.javascript.ClientServiceConfigParser parse

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

       

      I changed all web pages to .xhtml and changed also the tags within to <h:head and so on.

       

      An Example of a template header

      <!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:h="http://xmlns.jcp.org/jsf/html"

            xmlns:f="http://xmlns.jcp.org/jsf/core"

            xmlns:ui="http://xmlns.jcp.org/jsf/facelets"

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

            xmlns:richext="http://xmlns.jcp.org/jsf/composite/richext"

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

      <h:head>

      ...

      <h:link href="../../css/portal.css" rel="stylesheet" type="text/css" />

      <h:title><ui:insert name="pageTitle">Page title</ui:insert></h:title>

      <meta name="description" lang="en" content="" />

      <meta name="date" content="" />

      </h:head>

      <h:body id="main">

      ...

      and the webpage

      <ui:composition

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

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

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

        template="/WEB-INF/facelets/templates/portal.xhtml">

          <ui:define name="pageTitle">

            easy-camo - Yeah!!

          </ui:define>

       

          <ui:define name="languageSelect">

            <h:outputText value="LangBeginn" />

            <ui:include src="/WEB-INF/facelets/language.xhtml"/>

            <h:outputText value="LangEnde" />

          </ui:define>

          <ui:define name="news">

            <ui:include src="/WEB-INF/facelets/news20.xhtml"/>

          </ui:define>

          <ui:define name="banners">

            <ui:include src="/WEB-INF/facelets/banners.xhtml"/>

          </ui:define>

      </ui:composition>

       

      web.xml

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

      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">

        <display-name>JSF2Rich4</display-name>

        <context-param>

          <description>

              Enables the ui:debug facelets tag.

          </description>

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

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

        </context-param>

        <context-param>

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

          <param-value>Development</param-value>

        </context-param>

        <welcome-file-list>

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

        </welcome-file-list>

        <context-param>

          <description>State saving method: &quot;client&quot; or &quot;server&quot; (= default)

                  See JSF Specification 2.5.2</description>

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

          <param-value>client</param-value>

        </context-param>

        <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>*.jsf</url-pattern>

        </servlet-mapping>

        <servlet-mapping>

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

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

        </servlet-mapping>

        <servlet-mapping>

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

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

        </servlet-mapping>

      </web-app>

       

      faces-config.xml

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

      <faces-config

          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-facesconfig_2_1.xsd"

          version="2.1">

      <managed-bean>

        <managed-bean-name>bannerBean</managed-bean-name>

        <managed-bean-class>company.project.web.beans.portal.BannerBean</managed-bean-class>

        <managed-bean-scope>request</managed-bean-scope>

      </managed-bean>

      <managed-bean>

        <managed-bean-name>portalNewsBean</managed-bean-name>

        <managed-bean-class>company.project.web.beans.portal.NewsBean</managed-bean-class>

        <managed-bean-scope>request</managed-bean-scope>

      </managed-bean>

      <managed-bean>

        <managed-bean-name>loginRedirectBean</managed-bean-name>

        <managed-bean-class>company.project.web.beans.portal.LoginRedirectBean</managed-bean-class>

        <managed-bean-scope>request</managed-bean-scope>

      </managed-bean>

      <managed-bean>

        <managed-bean-name>languageBean</managed-bean-name>

        <managed-bean-class>company.project.web.beans.portal.LanguageBean</managed-bean-class>

        <managed-bean-scope>request</managed-bean-scope>

      </managed-bean>

      <managed-bean>

        <managed-bean-name>portalCounterBean</managed-bean-name>

        <managed-bean-class>company.project.web.beans.portal.CounterBean</managed-bean-class>

        <managed-bean-scope>request</managed-bean-scope>

      </managed-bean>

      <application>

        <locale-config>

         <default-locale>en</default-locale>

         <supported-locale>de</supported-locale>

         <supported-locale>en</supported-locale>

         <supported-locale>fi</supported-locale>

        </locale-config>

        <message-bundle>advantec.camo.web.resources.messages</message-bundle>

        <resource-bundle>

         <base-name>advantec.camo.web.resources.messages</base-name>

         <var>msg</var>

        </resource-bundle>

      </application>

      <lifecycle>

        <phase-listener>advantec.camo.web.util.listeners.SessionTimeoutPhaseListener</phase-listener>

        <phase-listener>advantec.camo.web.util.listeners.RestoreMessagesPhaseListener</phase-listener>

        <phase-listener>advantec.camo.web.util.listeners.ClearMessagesPhaseListener</phase-listener>

        <phase-listener>advantec.camo.web.util.listeners.NavigationPhaseListener</phase-listener>

      </lifecycle>

       

      </faces-config>

      Additional data:

      Eclipse 4.3/Kepler

      Apache Tomcat 7.0.26

      JSF Project from Scratch

      Webapp Libs

      common-annotations.jar

      commons-beanutils.jar

      commons-collections.jar

      commons-digester.jar

      commons-logging.jar

      cssparser-0.9.5.jar

      guava-10.0.1.jar

      hibernate-commons-annotations-4.0.2.Final.jar

      hibernate-core-4.2.3.Final.jar

      hibernate-ehcache-4.2.2.Final.jar

      javax.faces-2.1.13.jar

      jstl.jar

      log4j-1.2.16.jar

      mysql-connector-java-5.1.26-bin.jar

      richfaces-components-api-4.3.3.Final.jar

      richfaces-components-ui-4.3.3.Final.jar

      richfaces-core-api-4.3.3.Final.jar

      richfaces-core-impl-4.3.3.Final.jar

      standard.jar

       

      Where have I to look for, too?

       

      Please give a hint or a link for resolving this issue