3 Replies Latest reply on Mar 15, 2012 12:12 PM by teacurran

    Adding seam-faces produces many ClassNotFound exceptions

    daxxy

      I have a small app originally copied from the "greeter" quickstart.  I added richfaces to the pom and now I am trying to add seam-faces.  I added seam-faces 3.1.0.Final to the app.  Now when I deploy I get a whole bunch of ClassNotFoundExceptions.  I am on EAP 6 Beta which seems to be the same as 7.1.0.Final more or less.

       

      The WEB-INF/lib contains the following libraries

       

      commons-lang-2.6.jar

      cssparser-0.9.5.jar

      guava-10.0.1.jar

      javax.faces-2.1.5.jar

      jsr305-1.3.9.jar

      jstl-api-1.2.jar

      richfaces-components-api-4.2.0.Final.jar

      richfaces-components-ui-4.2.0.Final.jar

      richfaces-core-api-4.2.0.Final.jar

      richfaces-core-impl-4.2.0.Final.jar

      sac-1.3.jar

      seam-faces-3.1.0.Final.jar

      seam-faces-api-3.1.0.Final.jar

      seam-international-api-3.1.0.Final.jar

      servlet-api-2.5.jar

      solder-api-3.1.0.Final.jar

      solder-impl-3.1.0.Final.jar

      solder-logging-3.1.0.Final.jar

       

      Stack trace is appended. Any ideas?

      TDR

        • 1. Re: Adding seam-faces produces many ClassNotFound exceptions
          teacurran

          you're missing a bunch of jars. I would check your maven and make sure it is pulling the right dependencies.  A quick glance, you should have all of the following in your lib folder.

           

          joda-time-1.6.jar

          prettyfaces-jsf2-3.3.2.jar

          seam-faces-3.1.0.Final.jar

          seam-faces-api-3.1.0.Final.jar

          seam-international-3.1.0.Final.jar

          seam-international-api-3.1.0.Final.jar

          seam-mail-3.1.0.Final.jar

          seam-mail-api-3.1.0.Final.jar

          seam-persistence-3.1.0.Final.jar

          seam-persistence-api-3.1.0.Final.jar

          seam-security-api-3.1.0.Final.jar

          seam-transaction-3.1.0.Final.jar

          seam-transaction-api-3.1.0.Final.jar

          solder-api-3.1.0.Final.jar

          solder-impl-3.1.0.Final.jar

          solder-logging-3.1.0.Final.jar

          • 2. Re: Adding seam-faces produces many ClassNotFound exceptions
            daxxy

            It is definitely not pulling the right dependencies and of course I can add them manually.  But shouldn't seam-faces pull them for me?

             

             

            TDR

            • 3. Re: Adding seam-faces produces many ClassNotFound exceptions
              teacurran

              yeah. it looks like the maven pom files have several of those jard listed as optional. not sure why if they are true dependencies.

               

              I neveer trust automatic resolution, in my project I have all of these listed as my dependencies:

              seam-international

              seam-international-api

              seam-persistence

              seam-persistence-api

              seam-faces

              seam-faces-api

              seam-transaction-api

              seam-transaction

              solder-api

              solder-impl

              solder-logging

              seam-mail

              seam-mail-api

              seam-security

              seam-security-api

              1 of 1 people found this helpful