1 Reply Latest reply on Mar 1, 2007 7:54 PM by atao

    Seam breaks with Groovy

    trouby

      Hi,
      I have an annoying issue,


      I'm trying to pack Seam (jboss-seam.jar/thirdparty-all.jar) plus Groovy scripting language (http://groovy.codehaus.org/)

      As it seems, Seam uses ASM package (by Objectweb) while Groovy do the same.


      Problem is that Groovy comes with asm ver 2.2 while I'm not sure which Asm version Seam requires, but both doesnt work together.


      So if I dont include any ASM jars except what comes with thirdparty-all.jar I get an exception that some classes are missing such as:

      [#|2007-03-01T13:06:45.080+0200|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8181-0;|
      javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean: java.lang.NoClassDefFoundError: org/objectweb/asm/Opcodes
       at com.sun.ejb.containers.BaseContainer.checkExceptionClientTx(BaseContainer.java:3675)
      ...
      



      If I include the asm-2.2.jar file which comes with Groovy, then Groovy complains with errors such as:

      org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V|#]
      



      Any solution here? I assume both Groovy/Seam make a use of different ASM versions.... :-/


      Thanks guys,

      Asaf.

        • 1. Re: Seam breaks with Groovy
          atao

          Hello,

          thirdparty-all.jar doesn't contain the full asm library.

          The simplest way is to use the groovy archive with dependencies, that is groovy-all-1.0-RC-01.jar.

          Regards

          Pierre