5 Replies Latest reply on Aug 24, 2010 9:33 AM by R Saravana Prasad

    Seam in Jboss5.1.0

    R Saravana Prasad Newbie

      What set of jar files are required for a Seam application.ear with Facelets in Jboss5.1.0

        • 1. Re: Seam in Jboss5.1.0
          R Saravana Prasad Newbie

          With
          richfaces-api-3.3.3.Final.jar,
          richfaces-impl-3.3.3.Final.jar,
          richfaces-impl-jsf2-3.3.3.Final.jar,
          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

          • 2. Re: Seam in Jboss5.1.0
            Tomaz Cerar Master

            you are missing resteasy jars....



            • 3. Re: Seam in Jboss5.1.0
              R Saravana Prasad Newbie

              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.

              • 4. Re: Seam in Jboss5.1.0
                R Saravana Prasad Newbie

                Thanks, Tomaz.
                This error is now fixed. Added jaxrs-api-2.0.1.GA.jar and resteasy-jaxrs-2.0.1.GA.jar from resteasy-jaxrs-2.0.1.GA.

                • 5. Re: Seam in Jboss5.1.0
                  R Saravana Prasad Newbie

                  resteasy jars that come with jboss-seam-2.2.0.GA helps. No seperate download of resteasy jars required.
                  Thanks.


                  Saravana Prasad