4 Replies Latest reply on Oct 24, 2007 7:38 AM by Ali Baba

    Upgrade CR1 to CR2

    Stephan Heffner Newbie

      After an update of Seam CR1 to CR2 I'll get an java.lang.ClassFormatError.

      2007-10-10 11:43:42,091 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/joe]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      java.lang.ClassFormatError: Illegal class modifiers in class org/jboss/seam/remoting/package-info: 0x1600


      I'm using JBoss AS 4.2.1 and Java 1.5.0_12 (64bit).

      Any idea whats going wrong here?

      Pingus

        • 1. Re: Upgrade CR1 to CR2
          Stuart Douglas Master

          You could try downloading Seam again, as it sounds like the jar is corrupt.

          • 2. Re: Upgrade CR1 to CR2
            Stephan Heffner Newbie

            The download was OK, but your hint was helpful anyway :-)

            I've checked all libraries in lib and found a differences for all the jboss-seam jars. After that I realized, that I've invoked ant build to solve the issue with seam-gen and missing dependencies.

            I've replaced all jboss-seam jars with the files from the original download and it works.

            Thanks
            Pingus

            • 3. Re: Upgrade CR1 to CR2
              Ali Baba Newbie

               

              "pingus" wrote:
              The download was OK, but your hint was helpful anyway :-)

              I've checked all libraries in lib and found a differences for all the jboss-seam jars. After that I realized, that I've invoked ant build to solve the issue with seam-gen and missing dependencies.

              I've replaced all jboss-seam jars with the files from the original download and it works.

              Thanks
              Pingus


              I have the same issue here and can't solve it. Could you please be more specific:
              - Which lib directories did you have compared?
              - And in which place did you replace all jboss-seam jars?
              - Where did you take the original jars from (from jboss-seam-2.0.0.CR2.zip) ?


              • 4. Re: Upgrade CR1 to CR2
                Ali Baba Newbie

                Ok, i found the solution. It was a little bit tricky because i used a development pc without network connection and had to excange data on an usb stick.

                1. download jboss-seam-2.0.0.CR2.zip and extract it
                2. open a command prompt and change to the jboss-seam-2.0.0.CR2 directory
                3. type "ant build"
                4. type "seam setup" and answer all the questions
                5. replace the directory jboss-seam-2.0.0.CR2/lib with the lib directory from jboss-seam-2.0.0.CR2.zip
                6. type "seam create-project" to create a empty seam web application

                (The directories ant/bin and java/bin have to be in the PATH)

                E.