6 Replies Latest reply on May 2, 2007 4:28 PM by Pronab Pal

    SEAM INSTALLATION

    Pronab Pal Newbie

      After installing JBOSS AS 4.0.5 with ejb3 profile and \jboss-seam-1.2.1.GA the ant script gives the following message with both Java 5 and 6:
      select-compiler:

      compile:
      [javac] Compiling 382 source files to C:\JBOSSSIM\jboss-seam-1.2.1.GA\build\
      classes
      [javac] javac: invalid target release: 1.5


      Can any of JBoss Seam users please give me a clue what is going wrong ?

      Thanks
      Pronob

        • 1. Re: SEAM INSTALLATION
          Norman Richards Master

          If you are getting that message, you are definitely not using Java 5.

          • 2. Re: SEAM INSTALLATION
            Pronab Pal Newbie

            I am pasting a full display with java -version output : just to make sure we are in the same page:


            C:\JBOSSSIM\jboss-seam-1.2.1.GA>java -version
            java version "1.6.0_01"
            Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
            Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

            C:\JBOSSSIM\jboss-seam-1.2.1.GA>ant
            Buildfile: build.xml

            init:
            [echo] Build JBoss Seam 1.2

            select-compiler:

            antlr:

            compilecore:
            [javac] Compiling 382 source files to C:\JBOSSSIM\jboss-seam-1.2.1.GA\build\
            classes
            [javac] javac: invalid target release: 1.5
            [javac] Usage: javac <source files>
            [javac] where possible options include:
            [javac] -g Generate all debugging info
            [javac] -g:none Generate no debugging info
            [javac] -g:{lines,vars,source} Generate only some debugging info
            [javac] -nowarn Generate no warnings
            [javac] -verbose Output messages about what the compiler
            is doing
            [javac] -deprecation Output source locations where deprecated
            APIs are used
            [javac] -classpath Specify where to find user class files
            [javac] -sourcepath Specify where to find input source files

            [javac] -bootclasspath Override location of bootstrap class fil
            es
            [javac] -extdirs Override location of installed extension
            s
            [javac] -d Specify where to place generated class f
            iles
            [javac] -encoding Specify character encoding used by sourc
            e files
            [javac] -source Provide source compatibility with specif
            ied release
            [javac] -target Generate class files for specific VM ver
            sion
            [javac] -help Print a synopsis of standard options


            BUILD FAILED
            C:\JBOSSSIM\jboss-seam-1.2.1.GA\build.xml:670: Compile failed; see the compiler
            error output for details.

            Total time: 2 seconds
            C:\JBOSSSIM\jboss-seam-1.2.1.GA>


            Thanks

            • 3. Re: SEAM INSTALLATION
              Norman Richards Master

              What version of Java does Ant think it is using? One way to tell:

              [orb@burrito tmp]$ ant -diagnostics | grep java.version
              ant.java.version: 1.5
              java.version : 1.5.0_07
              


              • 4. Re: SEAM INSTALLATION
                Pronab Pal Newbie

                Hi,
                I can run seam-gen and create a new project without any issue. Can I use seam-gen to deploy the examples? I am still stuck with the invalid target error message, Following is the full ant diagnostic dump-Can any one find any inconsitency in my set up? Please help!


                BUILD FAILED
                C:\JBOSSSIM\jboss-seam-1.2.1.GA\build.xml:656: Compile failed; see the compiler
                error output for details.

                Total time: 1 second
                C:\JBOSSSIM\jboss-seam-1.2.1.GA\examples\booking>ant -diagnostics
                ------- Ant diagnostics report -------
                Apache Ant version 1.6.5 compiled on June 2 2005

                -------------------------------------------
                Implementation Version (JDK1.2+ only)
                -------------------------------------------
                core tasks : 1.6.5
                optional tasks : 1.6.5

                -------------------------------------------
                ANT_HOME/lib jar listing
                -------------------------------------------
                ant.home: C:\ANT
                ant-antlr.jar (5667 bytes)
                ant-apache-bcel.jar (8617 bytes)
                ant-apache-bsf.jar (12597 bytes)
                ant-apache-log4j.jar (3022 bytes)
                ant-apache-oro.jar (48034 bytes)
                ant-apache-regexp.jar (3724 bytes)
                ant-apache-resolver.jar (4082 bytes)
                ant-commons-logging.jar (3864 bytes)
                ant-commons-net.jar (35303 bytes)
                ant-icontract.jar (9721 bytes)
                ant-jai.jar (21359 bytes)
                ant-javamail.jar (6761 bytes)
                ant-jdepend.jar (8160 bytes)
                ant-jmf.jar (6605 bytes)
                ant-jsch.jar (22726 bytes)
                ant-junit.jar (74237 bytes)
                ant-launcher.jar (9180 bytes)
                ant-netrexx.jar (9998 bytes)
                ant-nodeps.jar (421008 bytes)
                ant-starteam.jar (35472 bytes)
                ant-stylebook.jar (2328 bytes)
                ant-swing.jar (6763 bytes)
                ant-trax.jar (68841 bytes)
                ant-vaj.jar (49742 bytes)
                ant-weblogic.jar (14363 bytes)
                ant-xalan1.jar (4465 bytes)
                ant-xslp.jar (2244 bytes)
                ant.jar (1034049 bytes)
                xercesImpl.jar (1010675 bytes)
                xml-apis.jar (124724 bytes)

                -------------------------------------------
                Tasks availability
                -------------------------------------------
                image : Missing dependency com.sun.media.jai.codec.FileSeekableStream
                sshexec : Missing dependency com.jcraft.jsch.UserInfo
                scp : Missing dependency com.jcraft.jsch.UserInfo
                jdepend : Missing dependency jdepend.xmlui.JDepend
                junit : Missing dependency junit.framework.Test

                -------------------------------------------
                org.apache.env.Which diagnostics
                -------------------------------------------
                Not available.
                Download it at http://xml.apache.org/commons/

                -------------------------------------------
                XML Parser information
                -------------------------------------------
                XML Parser : org.apache.crimson.jaxp.SAXParserImpl
                XML Parser Location: C:\jdom\dom\crimson.jar

                -------------------------------------------
                System properties
                -------------------------------------------
                java.runtime.name : Java(TM) SE Runtime Environment
                sun.boot.library.path : C:\Program Files\Java\jdk1.6.0_01\jre\bin
                java.vm.version : 1.6.0_01-b06
                ant.library.dir : C:\Ant\lib
                java.vm.vendor : Sun Microsystems Inc.
                java.vendor.url : http://java.sun.com/
                path.separator : ;
                java.vm.name : Java HotSpot(TM) Client VM
                file.encoding.pkg : sun.io
                user.country : AU
                sun.java.launcher : SUN_STANDARD
                sun.os.patch.level : Service Pack 2
                java.vm.specification.name : Java Virtual Machine Specification
                user.dir : C:\JBOSSSIM\jboss-seam-1.2.1.GA\examples\booking
                java.runtime.version : 1.6.0_01-b06
                java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
                java.endorsed.dirs : C:\Program Files\Java\jdk1.6.0_01\jre\lib\endorsed
                os.arch : x86
                java.io.tmpdir : C:\DOCUME~1\pronob\LOCALS~1\Temp\
                line.separator :

                java.vm.specification.vendor : Sun Microsystems Inc.
                user.variant :
                os.name : Windows XP
                ant.home : C:\ANT
                sun.jnu.encoding : Cp1252
                java.library.path : C:\Program Files\Java\jdk1.6.0_01\bin;.;C:\WINDOWS\Sun\Java\
                bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Maven\maven-2.0.4\bin;C:\oraclexe\app\orac
                le\product\10.2.0\server\bin; C:\Blazix\;C:\TOM\Tomcat 5.5\bin;C:\Program Files\
                Java\jdk1.6.0_01\bin;C:\ANT\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System
                32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Com
                mon Files\Ulead Systems\MPEG;C:\Sun\jwsdp-1.5\jwsdp-shared\bin;C:\Program Files\
                MySQL\MySQL Server 5.0\bin;C:\Program Files\Microsoft SQL Server\80\Tools\BINN
                java.specification.name : Java Platform API Specification
                java.class.version : 50.0
                sun.management.compiler : HotSpot Client Compiler
                os.version : 5.1
                user.home : C:\Documents and Settings\pronob
                user.timezone : Australia/Sydney
                java.awt.printerjob : sun.awt.windows.WPrinterJob
                file.encoding : Cp1252
                java.specification.version : 1.6
                user.name : pronob
                java.class.path : C:\ANT\lib\ant-launcher.jar;c:\jfuge\jfugue.jar;C:\swing\swixm
                l_144\build\swixml.jar;C:\Program Files\Java\jdk1.5.0_03\bin;C:\velocity\velocit
                y-1.4\velocity-1.4\velocity-dep-1.4.jar;C:\flow\ff\abch.jar;C:\TOM\Tomcat 5.5\co
                mmon\lib\servlet-api.jar;c:\jar\j2ee.jar;c:\jar\commons-logging.jar;c:\jar\strut
                s.jar;c:\jar\struts-console.jar;c:\jdom\dom\jdom.jar;c:\jdom\dom\crimson.jar;c:\
                jdom\dom\xalan.jar;c:\jdom\dom\xercesImpl.jar;C:\JBOSSSIM\jboss-seam-1.2.1.GA\ex
                amples\booking\.\;c:\javaclasspathtool\sr.jar;C:\JBOSSSIM\jboss-seam-1.2.1.GA\ex
                amples\booking\ C:\Blazix\Blazix.jar;C:\JBOSSSIM\jboss-seam-1.2.1.GA\examples\bo
                oking\.\;c:\BEA\jdk142_04\lib\tools.jar;C:\ANT\lib\ant.jar;C:\Files\Altova\xmlsp
                y\XMLSpyInterface.jar;C:\Ant\lib\ant-antlr.jar;C:\Ant\lib\ant-apache-bcel.jar;C:
                \Ant\lib\ant-apache-bsf.jar;C:\Ant\lib\ant-apache-log4j.jar;C:\Ant\lib\ant-apach
                e-oro.jar;C:\Ant\lib\ant-apache-regexp.jar;C:\Ant\lib\ant-apache-resolver.jar;C:
                \Ant\lib\ant-commons-logging.jar;C:\Ant\lib\ant-commons-net.jar;C:\Ant\lib\ant-i
                contract.jar;C:\Ant\lib\ant-jai.jar;C:\Ant\lib\ant-javamail.jar;C:\Ant\lib\ant-j
                depend.jar;C:\Ant\lib\ant-jmf.jar;C:\Ant\lib\ant-jsch.jar;C:\Ant\lib\ant-junit.j
                ar;C:\Ant\lib\ant-launcher.jar;C:\Ant\lib\ant-netrexx.jar;C:\Ant\lib\ant-nodeps.
                jar;C:\Ant\lib\ant-starteam.jar;C:\Ant\lib\ant-stylebook.jar;C:\Ant\lib\ant-swin
                g.jar;C:\Ant\lib\ant-trax.jar;C:\Ant\lib\ant-vaj.jar;C:\Ant\lib\ant-weblogic.jar
                ;C:\Ant\lib\ant-xalan1.jar;C:\Ant\lib\ant-xslp.jar;C:\Ant\lib\ant.jar;C:\Ant\lib
                \xercesImpl.jar;C:\Ant\lib\xml-apis.jar;C:\Program Files\Java\jdk1.6.0_01\lib\to
                ols.jar
                java.vm.specification.version : 1.0
                sun.arch.data.model : 32
                java.home : C:\Program Files\Java\jdk1.6.0_01\jre
                java.specification.vendor : Sun Microsystems Inc.
                user.language : en
                awt.toolkit : sun.awt.windows.WToolkit
                java.vm.info : mixed mode, sharing
                java.version : 1.6.0_01
                java.ext.dirs : C:\Program Files\Java\jdk1.6.0_01\jre\lib\ext;C:\WINDOWS\Sun\Jav
                a\lib\ext
                sun.boot.class.path : C:\Program Files\Java\jdk1.6.0_01\jre\lib\resources.jar;C:
                \Program Files\Java\jdk1.6.0_01\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_01
                \jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_01\jre\lib\jsse.jar;C:\Pr
                ogram Files\Java\jdk1.6.0_01\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_01\j
                re\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_01\jre\classes
                java.vendor : Sun Microsystems Inc.
                file.separator : \
                java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
                sun.cpu.endian : little
                sun.io.unicode.encoding : UnicodeLittle
                sun.desktop : windows
                sun.cpu.isalist : pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86

                C:\JBOSSSIM\jboss-seam-1.2.1.GA\examples\booking>









































                • 5. Re: SEAM INSTALLATION
                  Christian Bauer Master

                   


                  java.vm.version : 1.6.0_01-b06


                  Use JDK 5.0.

                  • 6. Re: SEAM INSTALLATION
                    Pronab Pal Newbie

                    I just found an old tools.jar sitting in my classpath; removing that has resolved the issue. Thanks for your help along the way.