3 Replies Latest reply on Mar 6, 2008 1:40 PM by baz

    2.1.0.A1: JPA example fails on Tomcat 5.5

    stephen

      JPA example from Seam 2.1.0.A1 builds fine using ant tomcat55.
      However when deployed it only gives
      java.lang.NoClassDefFoundError: org/apache/commons/collections/map/AbstractHashedMap


      It seems to me that this class comes from commons-collections 3.x, but seam only comes with 2.x.
      How then does the reference get into the code?
      Puzzled...

        • 1. Re: 2.1.0.A1: JPA example fails on Tomcat 5.5
          yuriy_zubarev

          I think JPA example is supposed to run on Tomcat 6 (and it does).

          • 2. Re: 2.1.0.A1: JPA example fails on Tomcat 5.5
            stephen

            That's not quite right:
            There are separate build targets for tomcat 5.5 and for tomcat 6 and the readme.txt also says it can be run on Tomcat 5.5.


            (My client's servers probably won't run Tomcat 6 until sometimes next year - if at all.)


            I just tried with seam 2.0.1.GA.


            At first it had another problem (could not find some asm class).
            After adding asm.jar to tomcat server it worked on Tomcat 5.5.


            So there must be a new problem in 2.1.0.A1 related to commons-collections.

            • 3. Re: 2.1.0.A1: JPA example fails on Tomcat 5.5
              baz

              So there must be a new problem in 2.1.0.A1 related to commons-collections.

              You are right. I have tried this some time ago and stumpled upon it. Seam is build by myself with the supplied ant script. This results in a wrong version of commons-collecting added to the seam lib folder.


              My solution was to copy commons-collection from seam-2.0.1 to seam 2.1.0


              Then the example works.