3 Replies Latest reply on Jan 17, 2007 1:18 PM by Norman Richards

    Cannot compile seam from CVS

    Fady Matar Novice

      I used JBoss Seam from CVS however today I can no longer compile the sources. the Tool class is no longer available in antlr. Here's the error I get from the console.

      $ ant
      Buildfile: build.xml
      
      init:
       [echo] Build JBoss Seam 1.1
       [mkdir] Created dir: d:\workspace\src\java\frameworks\jboss-seam\build\classes
       [copy] Copying 8 files to d:\workspace\src\java\frameworks\jboss-seam\build\classes
      
      select-compiler:
      
      antlr:
      [antlrtask] java.lang.NoClassDefFoundError: antlr/Tool
      [antlrtask] Exception in thread "main"
      
      BUILD FAILED
      d:\workspace\src\java\frameworks\jboss-seam\build.xml:496: ANTLR returned: 1
      
      Total time: 0 seconds


        • 2. Re: Cannot compile seam from CVS
          Pete Muir Master

          This patch fixes it for me

          ### Eclipse Workspace Patch 1.0
          #P jboss-seam
          Index: build.xml
          ===================================================================
          RCS file: /cvsroot/jboss/jboss-seam/build.xml,v
          retrieving revision 1.126
          diff -u -r1.126 build.xml
          --- build.xml 16 Jan 2007 20:52:44 -0000 1.126
          +++ build.xml 17 Jan 2007 17:04:27 -0000
          @@ -471,20 +471,20 @@
           </copy>
           </target>
          
          - <target name="antlr"
          - description="Generate ANTLR parser">
          - <mkdir dir="${src.java.dir}/org/jboss/seam/text"/>
          - <taskdef name="antlrtask" classname="org.apache.tools.ant.taskdefs.optional.ANTLR">
          - <classpath>
          - <fileset dir="${lib.dir}">
          - <include name="ant-antlr-*.jar"/>
          - <include name="antlr-*.jar"/>
          - </fileset>
          - </classpath>
          - </taskdef>
          - <antlrtask target="seam-text.g" outputdirectory="${src.java.dir}/org/jboss/seam/text"/>
          - </target>
          -
          + <target name="antlr"
          + description="Generate ANTLR parser">
          + <mkdir dir="${src.java.dir}/org/jboss/seam/text"/>
          + <taskdef name="antlrtask" classname="org.apache.tools.ant.taskdefs.optional.ANTLR" />
          + <antlrtask target="seam-text.g" outputdirectory="${src.java.dir}/org/jboss/seam/text">
          + <classpath>
          + <fileset dir="${lib.dir}">
          + <include name="ant-antlr-*.jar"/>
          + <include name="antlr-*.jar"/>
          + </fileset>
          + </classpath>
          + </antlrtask>
          + </target>
          +
           <target name="select-compiler">
           <available classname="org.eclipse.jdt.core.JDTCompilerAdapter"
           property="build.compiler"