4 Replies Latest reply on Feb 20, 2013 10:03 PM by kenfinni

    Integartion of Richfaces4.2.3.Final with Seam2.3.3.Final as GateIn portlet throws runtime exception

    maran_su

      Hi Everyone,  I am working in a project deals with GateIn portlet 3.5.0,Seam2.3.3 and Richfaces 4.2.3.Final with portletbridge 3.1.1.Final and GateIn3.5.0JbossAS7 server. I am able to import the  JSF2.1 with SeamPortlet in to gateIn it works fine. If I try to integrate Richfaces 4.2.3 with Seam 2.3.3.Final as a portlet I got runtime exception in GateIn 3.5.0.Jboss AS 7 server.  I have attached my error can anyone help me to sort out this exception. I have referred in website they suggested like the following dependency loaded two time l   16:34:57,988 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-4) Critical error during deployment: : com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! duplicate key: class javax.faces.convert.DoubleConverter         at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:376) [jsf-impl-2.1.7-jbossorg-2.jar:] i have attached my effective Pom.xml can any one help me.   Thanks

        • 1. Re: Integartion of Richfaces4.2.3.Final with Seam2.3.3.Final as GateIn portlet throws runtime exception
          maran_su

          Hi ,

           

                 any update on this post

          • 2. Re: Integartion of Richfaces4.2.3.Final with Seam2.3.3.Final as GateIn portlet throws runtime exception
            kenfinni

            Maran,

             

            Unfortunately Portlet Bridge does not support Seam in versions after 3.0, so there is no guarantee as to whether it will work or not.

             

            It looks like your error is due to 2 versions of JSF API being on your classpath, and looking at the effective pom you attached I see:

             

                  <dependency>

                    <groupId>javax.faces</groupId>

                    <artifactId>javax.faces-api</artifactId>

                    <version>2.1</version>

                  </dependency>

                  <dependency>

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

                    <artifactId>jsf-api</artifactId>

                    <version>2.1.0</version>

                  </dependency>

             

            When deploying on AS7, unless you tell it otherwise, it will add its versions of JSF to your classpath so you don't need to include them in your archive.

             

            Ken

            • 3. Re: Integartion of Richfaces4.2.3.Final with Seam2.3.3.Final as GateIn portlet throws runtime exception
              maran_su

              Ken,

               

              i am not able to edit the effective pom ,  i am not finding any where this dependecies in my pom.xml files(like ear,ejb or web)  files apart from my effective pom available in my root  how can i remove it.

               

                     one more thing I downloaded from Jboss Tools GateIn quickStart JSF2-RF4-helloworld-portlet, this project integrates jsf with richfaces ,this works fine

               

               

              i gone through the pom.xml this also contains

               

              <dependency>

                      <groupId>javax.faces</groupId>

                      <artifactId>javax.faces-api</artifactId>

                      <version>2.1</version>

                    </dependency>

                    <dependency>

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

                      <artifactId>jsf-api</artifactId>

                      <version>2.1.0</version>

                    </dependency>

               

              but my requirment is

              i need   JSF2-RF4-Seam-portlet  as ear package so i am trying to integrate registration example available in Seam2.3.0.Final with Richfaces4 which i got from Jboss tools quickstart.

               

              any help...

              • 4. Re: Integartion of Richfaces4.2.3.Final with Seam2.3.3.Final as GateIn portlet throws runtime exception
                kenfinni

                Maran,

                 

                Maybe that dependency isn't causing a problem then.

                 

                As I said in my previous comment, Seam is not supported with Portlet Bridge in portlets. It's not something that has been tried to my knowledge, and I'd be very surprised if it doesn't have a lot of problems.

                 

                Ken