11 Replies Latest reply on Jun 12, 2007 6:23 PM by Pete Muir

    could not execute seam commands.

    paata lominadze Master

      hi all, i had problems about composite keys and i found posts here about it,
      http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015196#4015196


      and then i got seam from CVS, but it did not work, i got an error :

      paatal@paatal:~/jboss-seam> ./seam setup
      Buildfile: build.xml
      
      BUILD FAILED
      /home/paatal/jboss-seam/seam-gen/build.xml:9: taskdef class org.jboss.seam.tool.PackageDirectoryTask cannot be found
      Total time: 0 seconds
      


      i don't know what does it mean, can anybody help me ?


      Regards,
      Paata.

        • 1. Re: could not execute seam commands.
          Gavin King Master

          You have to build seam first.

          Just type "ant" in the main dir.

          • 2. Re: could not execute seam commands.
            paata lominadze Master

             

            "gavin.king@jboss.com" wrote:
            You have to build seam first.

            Just type "ant" in the main dir.



            hi gavin.

            i did it but i got another error :
            paatal@paatal:~/jboss-seam> /home/paatal/InstalledPrograms/apache-ant-1.7.0/bin/ant
            Buildfile: build.xml
            
            init:
             [echo] Build JBoss Seam 1.1
             [mkdir] Created dir: /home/paatal/jboss-seam/build/classes
             [copy] Copying 16 files to /home/paatal/jboss-seam/build/classes
            
            select-compiler:
            
            antlr:
             [mkdir] Created dir: /home/paatal/jboss-seam/src/main/org/jboss/seam/text
            [antlrtask] ANTLR Parser Generator Version 2.7.6 (2005-12-22) 1989-2005
            
            compilecore:
             [javac] Compiling 425 source files to /home/paatal/jboss-seam/build/classes
             [javac] Note: Some input files use or override 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.
            
            jarcore:
             [mkdir] Created dir: /home/paatal/jboss-seam-1.1.6.GA
             [jar] Building jar: /home/paatal/jboss-seam/jboss-seam.jar
             [copy] Copying 1 file to /home/paatal/jboss-seam-1.1.6.GA
            
            initui:
             [echo] Build JBoss Seam UI 1.1
             [mkdir] Created dir: /home/paatal/jboss-seam/build/uiclasses
             [copy] Copying 5 files to /home/paatal/jboss-seam/build/uiclasses
            
            compileui:
             [javac] Compiling 59 source files to /home/paatal/jboss-seam/build/uiclasses
             [javac] /home/paatal/jboss-seam/src/ui/org/jboss/seam/ui/SelectDate.java:12: package org.jboss.seam.ui.resource does not exist
             [javac] import org.jboss.seam.ui.resource.WebResource;
             [javac] ^
             [javac] /home/paatal/jboss-seam/src/ui/org/jboss/seam/ui/SelectDate.java:103: cannot find symbol
             [javac] symbol : variable WebResource
             [javac] location: class org.jboss.seam.ui.SelectDate
             [javac] WebResource.WEB_RESOURCE_PATH + "/date/calendar.js", null);
             [javac] ^
             [javac] Note: Some input files use unchecked or unsafe operations.
             [javac] Note: Recompile with -Xlint:unchecked for details.
             [javac] 2 errors
            
            BUILD FAILED
            /home/paatal/jboss-seam/build.xml:623: Compile failed; see the compiler error output for details.
            
            Total time: 12 seconds
            
            


            • 3. Re: could not execute seam commands.
              paata lominadze Master

              i did not resolve this problem yet, can anybody help me?

              this error pointed to build.xml file line 623.
              there is compileui configs:

              <target name="compileui" depends="initui,select-compiler"
               description="Compile the Java source code for the UI package">
               <javac
               source="1.5"
               target="1.5"
               destdir="${uiclasses.dir}"
               classpathref="build.classpath"
               debug="${javac.debug}"
               deprecation="${javac.deprecation}"
               nowarn="on">
               <src path="${src.ui.dir}"/>
               </javac>
               </target>
              


              i don't know how to resolve this problem :(.

              Regards,
              Paata



              • 4. Re: could not execute seam commands.
                Gavin King Master

                Re-check-out jboss-seam. I promise you that CVS can be compiled.

                • 5. Re: could not execute seam commands.
                  Harry Holt Newbie

                   

                  "gavin.king@jboss.com" wrote:
                  Re-check-out jboss-seam. I promise you that CVS can be compiled.


                  Is there some information on what is required to do that? I've been trying for a couple of weeks, and always get the same error.

                  Can Apache Ant 1.7.0 compile it ok? That's what I'm using. My compiler is Sun's 1.5.0_11. Am I missing some configuration? All I'm doing is CO from CVS, change build.properties to point to the installation of jboss-4.2.0.GA.

                  Here's the compile error I always get:


                  [javac] Compiling 407 source files to /opt/jboss-seam/build/classes
                   [javac] /opt/jboss-seam/src/main/org/jboss/seam/core/Expressions.java:6: package org.jboss.seam.el does not exist
                   [javac] import static org.jboss.seam.el.EL.EL_CONTEXT;
                   [javac] ^
                   [javac] /opt/jboss-seam/src/main/org/jboss/seam/core/Expressions.java:6: static import only from classes and interfaces
                   [javac] import static org.jboss.seam.el.EL.EL_CONTEXT;
                   [javac] ^
                   [javac] /opt/jboss-seam/src/main/org/jboss/seam/core/Expressions.java:23: package org.jboss.seam.el does not exist
                   [javac] import org.jboss.seam.el.SeamExpressionFactory;
                   [javac] ^
                   [javac] /opt/jboss-seam/src/main/org/jboss/seam/contexts/PassivatedEntity.java:15: package org.jboss.seam.transaction does not exist
                  

                  ... etc.


                  • 7. Re: could not execute seam commands.
                    Harry Holt Newbie

                     

                    "petemuir" wrote:
                    http://labs.jboss.com/jbossseam/gettingstarted

                    RTM - Ant 1.6


                    Yes, I read the references you pointed out, but since it speaks to
                    seam-1.2, not CVS (1.3 alpha?), and refers to ant 1.7 beta (not
                    1.7.0), I wasn't sure whether the issue with ant applied to the latest
                    source in CVS.

                    I have tried using ant 1.6.5, and consistently get the same errors there, too.

                    Thx... Squ1rr3l

                    • 8. Re: could not execute seam commands.
                      Ben Catherall Newbie

                      What program are you using to check out? If you're using WinCvs, make sure you tick the 'create missing directories that exist in the repository' box.

                      • 9. Re: could not execute seam commands.
                        Harry Holt Newbie

                        Hmmm... I'm using GNU CVS 1.12.13 (or should that be FSF CVS?). I assume I'm getting everything since I don't get any errors but of course I may not be.

                        I do have /lib/jboss-el.jar and /lib/jboss-el-api.jar, and they are referenced in the ".classpath" file, so I don't know why I'm getting this error.

                        I'm assuming there is something wrong with my configs either in jboss, java, or ant, but I don't know where to look.

                        • 10. Re: could not execute seam commands.
                          Harry Holt Newbie

                          Ok, obviously something was missing, and CVS was not updating the entire tree... I completely deleted the directory and re-ran the check-out from scratch, and everything compiles fine. Should have done that before :-/

                          javac went from "Compiling 407 source files... " to "Compiling 417 source files..."
                          !!

                          • 11. Re: could not execute seam commands.
                            Pete Muir Master

                            cvs up -C -d will ensure you get exactly the source tree as on the server - otherwise CVS won't update stuff it thinks might have been changed locally.