1 Reply Latest reply on Nov 29, 2006 4:18 PM by james.williams

    Seamgen 1.1CR: Exception in thread

    faerine

      I am trying to use the versio of Seamgen in Seam 1.1CR (./seam setup), and there is a problem Seam's embedded Ant.

      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher

      It gives the same error on a computer that has a separete system-wide Ant installation and on a computer that doesn't (both of them Ubuntu Linux), so it shouldn't be an Ant conflict as Ant's forums suggest.

      The relative paths to the embedded Ant installation are correct. I also tried absolute paths, even setting the system-wide ANT_HOME to point to Seam's lib dir - nothing happens.

      I have had no problems using the old Seamgen (which required Ant to be preinstalled).

        • 1. Re: Seamgen 1.1CR: Exception in thread

          The script is wrong, but it's fixed in CVS. Replace the shell script content in $SEAM_HOME/seam with this:

          #/bin/sh
          ############################################
          #
          # seam-gen
          #
          ############################################
          
          cd seam-gen
          
          # OS specific support (must be 'true' or 'false').
          cygwin=false;
          case "`uname`" in
           CYGWIN*)
           cygwin=true
           ;;
          esac
          
          if [ "${1}" = "" ]
          then
           cat USAGE
          elif [ "${1}" = help ]
          then
           cat README
          elif $cygwin
          then
           java -cp "${JAVA_HOME}\lib\tools.jar;..\lib\ant-nodeps.jar;..\lib\ant-launcher.jar;..\lib\ant.jar" -Dant.home=..\lib org.apache.tools.ant.launch.Launcher ${*}
          else
           java -cp "${JAVA_HOME}/lib/tools.jar:../lib/ant-nodeps.jar:../lib/ant-launcher.jar:../lib/ant.jar" -Dant.home=../lib org.apache.tools.ant.launch.Launcher ${*}
          fi
          
          cd ..
          


          James