6 Replies Latest reply on Sep 1, 2011 10:45 AM by Dmitriy Sukharev

    Migration to RichFaces 4.0, JSF 2.0 & Maven

    Dmitriy Sukharev Newbie

      Hello,

       

      I'm trying to migrate from RichFaces3.3.3 & JSF 1.2 to RichFaces 4.0 & JSF 2.0 but at the moment without success. Currently following exception is shown:

      ...

      [INFO] [talledLocalContainer] Tomcat 7.x started on port [9090]

      [INFO] Press Ctrl-C to stop the container...

      [WARNING] [talledLocalContainer] Apr 11, 2011 11:28:41 PM org.apache.catalina.core.StandardWrapperValve invoke

      [WARNING] [talledLocalContainer] SEVERE: Servlet.service() for servlet [Faces Servlet] in context with path [/organizer] threw exception [/WEB-INF/pages/header.xhtml @15,79 <rich:separator> Tag Library supports namespace: http://richfaces.org/rich, but no tag was defined for name: separator] with root cause

      [WARNING] [talledLocalContainer] javax.faces.view.facelets.TagException: /WEB-INF/pages/header.xhtml @15,79 <rich:separator> Tag Library supports namespace: http://richfaces.org/rich, but no tag was defined for name: separator

      [WARNING] [talledLocalContainer]     at com.sun.faces.facelets.compiler.CompilationManager.pushTag(CompilationManager.java:291)

      [WARNING] [talledLocalContainer]     at com.sun.faces.facelets.compiler.SAXCompiler$CompilationHandler.startElement(SAXCompiler.java:232)

      [WARNING] [talledLocalContainer]     at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)

      [WARNING] [talledLocalContainer]     at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)

      [WARNING] [talledLocalContainer]     at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:788)

      [WARNING] [talledLocalContainer]     at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:377)

      [WARNING] [talledLocalContainer]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)

      [WARNING] [talledLocalContainer]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)

      [WARNING] [talledLocalContainer]     at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)

      [WARNING] [talledLocalContainer]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)

      [WARNING] [talledLocalContainer]     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)

      [WARNING] [talledLocalContainer]     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)

      [WARNING] [talledLocalContainer]     at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)

      [WARNING] [talledLocalContainer]     at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)

      [WARNING] [talledLocalContainer]     at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)

      [WARNING] [talledLocalContainer]     at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)

      [WARNING] [talledLocalContainer]     at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)

      ...

      I tried to google but also without success. Can anybody help me, please?

       

      Best regards!

      Dmitriy.

        • 1. Migration to RichFaces 4.0, JSF 2.0 & Maven
          arturo eduardo cabrera cordoba Newbie

          hi, first exchage this in web.xml

           

          <!-- Richfaces -->

              <context-param>

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

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

              </context-param>

           

          for

            

          <context-param>

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

                    <param-value>ruby</param-value>

              </context-param>

           

          this link can help:

           

          http://community.jboss.org/wiki/RichFacesMigrationGuide33x-4xMigration-Upgrading

           

           

          my dependencies are:

           

          commons-collections:commons-collections:jar:3.2.1:compile

          commons-logging:commons-logging:jar:1.1.1:compile

          commons-lang:commons-lang:jar:2.4:compile

           

          jboss:jbpm-jpdl:jar:3.2.3:compile

          commons-beanutils:commons-beanutils:jar:1.7.0:compile

          jboss:jbpm-identity:jar:3.2.3:compile

          org.springframework:spring-orm:jar:3.0.3.RELEASE:compile

          javax.transaction:jta:jar:1.0.1B:compile

          org.hibernate:hibernate:jar:3.2.6.ga:compile

          asm:asm-attrs:jar:1.5.3:compile

          antlr:antlr:jar:2.7.6:compile

          cglib:cglib:jar:2.1_3:compile

          asm:asm:jar:1.5.3:compile

          org.hibernate:hibernate-annotations:jar:3.2.1.ga:compile

          javax.persistence:persistence-api:jar:1.0:compile

          postgresql:postgresql:jar:8.3-603.jdbc3:compile

          org.apache.geronimo.specs:geronimo-ws-metadata_2.0_spec:jar:1.1.1:compile

          org.springframework:spring-beans:jar:3.0.3.RELEASE:compile

          org.jasypt:jasypt:jar:1.5:compile

          commons-codec:commons-codec:jar:1.1:compile

          spring-modules:spring-modules-jbpm31:jar:0.9-dev:compile

          javax.jcr:jcr:jar:1.0:compile

          net.sourceforge.jtds:jtds:jar:1.2.2:compile

          org.springframework.ldap:spring-ldap:jar:1.2.1:compile

           

          commons-dbcp:commons-dbcp:jar:1.2.1:runtime

          commons-pool:commons-pool:jar:1.2:runtime

          org.codehaus.plexus:plexus-utils:jar:1.0.4:compile

          junit:junit:jar:3.8.2:compile

          stax:stax:jar:1.2.0:compile

          stax:stax-api:jar:1.0.1:compile

          taglibs:datetime:jar:1.0.1:compile

          javax.servlet:servlet-api:jar:2.5:provided (scope not updated to compile)

          javax.servlet:jstl:jar:1.2:compile

          taglibs:standard:jar:1.1.2:compile

           

          com.thoughtworks.xstream:xstream:jar:1.2.2:compile

          xpp3:xpp3_min:jar:1.1.3.4.O:compile

          commons-fileupload:commons-fileupload:jar:1.2.2:compile

          commons-io:commons-io:jar:1.4:compile

          displaytag:displaytag:jar:1.1.1:compile

          org.slf4j:jcl104-over-slf4j:jar:1.4.2:compile

          org.slf4j:slf4j-log4j12:jar:1.4.2:compile

          org.slf4j:slf4j-api:jar:1.4.2:compile

          displaytag:displaytag-export-poi:jar:1.1.1:compile

          displaytag:displaytag-portlet:jar:1.1.1:compile

          org.apache.poi:poi:jar:3.0-FINAL:compile

          log4j:log4j:jar:1.2.12:compile

          net.sf.jasperreports:jasperreports:jar:3.6.0:compile

          commons-digester:commons-digester:jar:1.7:compile

          jfree:jcommon:jar:1.0.15:compile

          jfree:jfreechart:jar:1.0.12:compile

          xml-apis:xml-apis:jar:1.3.02:compile

          eclipse:jdtcore:jar:3.1.0:compile

          com.lowagie:itext:jar:2.1.0:compile

          bouncycastle:bcmail-jdk14:jar:136:compile

          bouncycastle:bcprov-jdk14:jar:136:compile

          javax.mail:mail:jar:1.4.1:compile

          javax.activation:activation:jar:1.1:compile

          bsh:bsh:jar:1.3.0:compile

          dom4j:dom4j:jar:1.6.1:compile

          el-impl:el-impl:jar:1.0:provided

          javax.el:el-api:jar:1.0:provided

          javax.annotation:jsr250-api:jar:1.0:compile

          org.richfaces.ui:richfaces-components-ui:jar:4.0.0.Final:compile

          org.richfaces.core:richfaces-core-impl:jar:4.0.0.Final:compile

          org.richfaces.ui:richfaces-components-api:jar:4.0.0.Final:compile

          org.richfaces.core:richfaces-core-api:jar:4.0.0.Final:compile

           

          net.sourceforge.cssparser:cssparser:jar:0.9.5:compile

          org.w3c.css:sac:jar:1.3:compile

          com.google.guava:guava:jar:r08:compile

          com.sun.faces:jsf-api:jar:2.0.4-b09:compile

          com.sun.faces:jsf-impl:jar:2.0.4-b09:compile

          javax.servlet.jsp:jsp-api:jar:2.1:provided

          net.sf.ehcache:ehcache:jar:1.6.0:compile

          org.testng:testng:jar:jdk15:5.10:test

           

          aopalliance:aopalliance:jar:1.0:compile

           

          org.springframework.security:spring-security-taglibs:jar:3.0.5.RELEASE:compile

          org.springframework.security:spring-security-web:jar:3.0.5.RELEASE:compile

          org.springframework.security:spring-security-acl:jar:3.0.5.RELEASE:compile

          org.springframework.security:spring-security-core:jar:2.0.4:compile

           

          org.springframework:spring-context:jar:3.0.3.RELEASE:compile

          org.springframework:spring-expression:jar:3.0.3.RELEASE:compile

          org.springframework:spring-asm:jar:3.0.3.RELEASE:compile

          org.springframework:spring-web:jar:3.0.3.RELEASE:compile

          org.springframework:spring-jdbc:jar:3.0.3.RELEASE:compile

          org.springframework:spring-core:jar:3.0.3.RELEASE:compile

          org.springframework:spring-test:jar:3.0.3.RELEASE:compile

          org.springframework:spring-aop:jar:3.0.3.RELEASE:compile

          org.springframework:spring-tx:jar:3.0.3.RELEASE:compile

          org.springframework:spring-context-support:jar:3.0.3.RELEASE:compile

          • 2. Migration to RichFaces 4.0, JSF 2.0 & Maven
            liumin hu Master

            I think some components in RF 3.3.3 are removed in RF4 like "rich:separator.

            • 3. Migration to RichFaces 4.0, JSF 2.0 & Maven
              Dmitriy Sukharev Newbie

              Yup, I deleted rich:separtor and pages began render, thanks.

              But there is still the problems because all rich:* components (at least inplaceInput and panelMenu) doesn't work properly in my case. Instead of panelMenu there are just rows of items as plain text. Instead of inplaceInput there are its value as plain text and html input field. Also I got some warning messages like topic maker of this topic got http://community.jboss.org/thread/165323 . Actually it looks like we have the same problem.

              I tried to add geronimo validator to avoid this warnings by adding:

              <dependency>

                  <groupId>org.apache.geronimo.specs</groupId>

                  <artifactId>geronimo-validation_1.0_spec</artifactId>

                  <version>1.0-CR5</version>

              </dependency>

              but I still have one warning

              [WARNING] [talledLocalContainer] Apr 12, 2011 11:48:52 AM org.richfaces.javascript.ClientServiceConfigParser parse

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

              and rich:* components still don't render in the proper way...

               

              What do I do wrong?

              • 4. Migration to RichFaces 4.0, JSF 2.0 & Maven
                Nick Belaevski Master

                Dmitriy,

                 

                Try removing <version> from this dependency:

                 

                            <groupId>com.sun.faces</groupId>

                            <artifactId>jsf-impl</artifactId>

                • 5. Migration to RichFaces 4.0, JSF 2.0 & Maven
                  Dmitriy Sukharev Newbie

                  Nothing changed after removing <version> of jsf-impl...

                   

                  BUT from the paralel thread i got to know that my problem with rich:* components is due to ommiting html, h:head & h:body tags. It works before but doesn't work now. So components render in the prober way now and I just happy!

                   

                  About problem with warnings, I added following and removed geronimo validator:

                          <dependency>

                              <groupId>org.hibernate</groupId>

                              <artifactId>hibernate-validator</artifactId>

                              <version>3.1.0.GA</version>

                              <exclusions>

                                  <exclusion>

                                      <artifactId>slf4j-api</artifactId>

                                      <groupId>org.slf4j</groupId>

                                  </exclusion>

                              </exclusions>

                          </dependency>

                         

                          <dependency>

                               <groupId>javax.validation</groupId>

                               <artifactId>validation-api</artifactId>

                               <version>1.0.0.GA</version>

                          </dependency>

                  but still I have the same one warning

                  [WARNING] [talledLocalContainer] Apr 12, 2011 11:48:52 AM org.richfaces.javascript.ClientServiceConfigParser parse

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

                  • 6. Re: Migration to RichFaces 4.0, JSF 2.0 & Maven
                    Dmitriy Sukharev Newbie

                    FYI: The question about wrong rendering rich:* components was answered here