4 Replies Latest reply on Nov 21, 2006 11:17 AM by gavin.king

    Seam 1.1.0 build failed

    wschwendt

      When trying to build jboss-seam-1.1.0.CR1 (but also jboss-seam-1.1.0.BETA1 or BETA2), I get the following error:


      $ ant

      Buildfile: build.xml

      init:
      [echo] Build JBoss Seam 1.1

      select-compiler:

      compile:
      [javac] Compiling 19 source files to G:\java2\jboss-seam-1.1.0.CR1\build\classes
      [javac] Note: G:\java2\jboss-seam-1.1.0.CR1\src\test\misc\org\jboss\seam\test\Foo.java uses or overrides a deprecated API.
      [javac] Note: Recompile with -Xlint:deprecation for details.
      [javac] Note: Some input files use unchecked or unsafe operations.
      [javac] Note: Recompile with -Xlint:unchecked for details.

      jar:

      initui:
      [echo] Build JBoss Seam UI 1.1

      compileui:

      jarui:

      initdebug:
      [echo] Build JBoss Seam Debug 1.1

      compiledebug:

      jardebug:

      initgen:
      [echo] Build JBoss Seam GEN 1.1

      BUILD FAILED
      G:\java2\jboss-seam-1.1.0.CR1\build.xml:324: G:\java2\jboss-seam-1.1.0.CR1\src\gen not found.

      Total time: 4 seconds




      I do not know to what extent this is a bug or feature. Building jboss-seam-1.0.1.GA works without any problems.

        • 1. Re: Seam 1.1.0 build failed
          gavin.king

          Ack, I missed adding one of the src folders to the dist. I'll fix and upload a new build.

          • 2. Re: Seam 1.1.0 build failed
            wschwendt

             

            "gavin.king@jboss.com" wrote:
            Ack, I missed adding one of the src folders to the dist. I'll fix and upload a new build.


            Thanks for the reply, Gavin.




            For the time being, a simple workaoround is to remove "jargen" from target "build" in file build.xml.

            <!--original target
            <target name="build" depends="jar,jarui,jardebug,jargen" -->

            <!-- changed target -->


            Then it is possible to build jboss-seam.jar, jboss-seam-debug.jar and jboss-seam-ui.jar without any build failure.




            But since I'm new to JBoss seam, I was wondering whether the build.xml file for seam1.1 is really intended as it was released. This is why I asked here. Clearly, for new users it can be confusing when they download the distribution and encounter a build failure.


            PS: Sorry for my bad English

            • 3. Re: Seam 1.1.0 build failed
              wschwendt

              For the time being, a simple workaoround is to remove "jargen" from target "build" in file build.xml.

               <!--original target which leads to build failure
               <target name="build" depends="jar,jarui,jardebug,jargen" -->
              
               <!-- changed target -->
               <target name="build" depends="jar,jarui,jardebug" description="Build all four distribution .jar files"/>
              
              



              • 4. Re: Seam 1.1.0 build failed
                gavin.king

                Well, usually you don't need to compile Seam once you have the dist, since it is already compiled ;-)