3 Replies Latest reply on Aug 24, 2010 9:28 AM by rsprasad

    Richfaces jars for seam application with Facelets in JBoss5.1.0

    rsprasad

      What set of jars files are required upgrading a Seam with Facelets application.ear from JBoss4.2.2 to JBoss5.1.0.

      With richfaces-api-3.3.3.Final.jar, richfaces-impl-3.3.3.Final.jar, richfaces-impl-jsf2-3.3.3.Final.jar and richfaces-ui-3.3.3.Final.jar ,

      I get error :

      ..

      java.lang.RuntimeException: Could not create Component: org.jboss.seam.resteasy.resourceAdapter

      ..

      ..

      ..

      Caused by: java.lang.NoClassDefFoundError: org/jboss/resteasy/specimpl/UriInfoImpl

      ..

        • 1. Re: Richfaces jars for seam application with Facelets in JBoss5.1.0
          ilya_shaikovsky

          Ar first - using RF 3.3.3 you should add only one richfaces-impl depending on which JSF imple you using (1.2 or 2.0).

           

          And in general I do not see how that exception could be caused by any RF upgrade.

          1 of 1 people found this helpful
          • 2. Re: Richfaces jars for seam application with Facelets in JBoss5.1.0
            rsprasad

            Thanks, I removed the jsf2 related jar for Richfaces. I had posted this query in Seam forum also.

            It is replied " you are missing resteasy jars.... "

             

            When jboss-seam-resteasy.jar that come with jboss-seam-2.2.1.CR1 is deployed as part of ear at the ear level and configured in application.xml, the error still occurs. Obviously because the jar does not contain org.jboss.seam.resteasy.ResourceAdapter.class the exception points to. But it contains org.jboss.seam.resteasy.ResteasyResourceAdapter.class and org.jboss.seam.resteasy.ResteasyResourceAdapter$1.class

            But the Exception points to

            .. .. java.lang.RuntimeException: Could not create Component: org.jboss.seam.resteasy.resourceAdapter at org.jboss.seam.init.Initialization.addComponent(Initialization.java:1205)

            .. and Caused by: java.lang.NoClassDefFoundError: org/jboss/resteasy/specimpl/UriInfoImpl .. .. .. Caused by: java.lang.ClassNotFoundException: org.jboss.resteasy.specimpl.UriInfoImpl .. .. ..

            The same jar does not contain org.jboss.resteasy.specimpl.UriInfoImpl either

            So which set of jars to be used for resteasy for a seam application with facelets in Jboss5.1.0.

            • 3. Re: Richfaces jars for seam application with Facelets in JBoss5.1.0
              rsprasad

              The resteasy jars that come with jboss-seam-2.2.0.GA helps.