2 Replies Latest reply on Apr 24, 2009 8:46 AM by Ben Cotton

    Problem building JBoss 5.1 Beta 1 from SVN tag

    Ben Cotton Newbie

      Hi,

      I downloaded the JBoss 5.1 Beta 1 source tree from the SVN tag at https://svn.jboss.org/repos/jbossas/tags/JBoss_5_1_0_Beta1/. When I go into the ../JBoss_5_1_0_Beta1/build/ directory and type 'build.bat', the build purrs along for 5+ minutes but ultimately fails here:


      generate-parsers:
      [javacc] Java Compiler Compiler Version 4.0 (Parser Generator)
      [javacc] (type "javacc" with no arguments for help)
      [javacc] Reading from file C:\users\buddy\workspace\jboss_5_1_0_Beta1\server\output\parsers\org\jboss\ejb\plugins\cmp\ejbql\JBossQLParser.jj . . .
      [javacc] Exception in thread "main" java.lang.Error: Invalid escape character at line 1 column 64.
      [javacc] at org.javacc.parser.JavaCharStream.readChar(Unknown Source)
      [javacc] at org.javacc.parser.JavaCCParserTokenManager.getNextToken(Unknown Source)
      [javacc] at org.javacc.parser.JavaCCParser.jj_ntk(Unknown Source)
      [javacc] at org.javacc.parser.JavaCCParser.javacc_options(Unknown Source)
      [javacc] at org.javacc.parser.JavaCCParser.javacc_input(Unknown Source)
      [javacc] at org.javacc.parser.Main.mainProgram(Unknown Source)
      [javacc] at org.javacc.parser.Main.main(Unknown Source)

      BUILD FAILED
      C:\users\buddy\workspace\jboss_5_1_0_Beta1\server\build.xml:301: c:\Java\JEE1.5_sdk\jdk\jre\bin\java.exe failed with return code 1

      Total time: 5 minutes 28 seconds


      I am working in a WindowsXP/Cygwin environ using JDK 1.5.0.18 and ANT 1.7 and have followed all the instructions provided at http://www.jboss.org/file-access/default/members/jbossas/freezone/docs/Installation_And_Getting_Started_Guide/5/html/source_installation.html . NOTE: when I download the jboss_4_2_3_GA source from its SVN tag, the build works perfectly in my environment. I would have hoped that building the AS 5 Beta 1 from an SVN tag would have been painless, but I am a bit stick now.

      Does any one know how to get around this build road-block?



        • 1. Re: Problem building JBoss 5.1 Beta 1 from SVN tag
          jaikiran pai Master

           

          [javacc] Exception in thread "main" java.lang.Error: Invalid escape character at line 1 column 64.
          [javacc] at org.javacc.parser.JavaCharStream.readChar(Unknown Source)


          C:\users\buddy\workspace\jboss_5_1_0_Beta1\server\build.xml:301: c:\Java\JEE1.5_sdk\jdk\jre\bin\java.exe failed with return code 1


          Are you sure you are using the correct JDK? Looks like its being pointed to JDK present in "JEE" SDK. Download the "JDK 5.0 Update 18" from Sun http://java.sun.com/javase/downloads/index_jdk5.jsp and point JAVA_HOME to this new location. See if that fixes the issue.


          • 2. Re: Problem building JBoss 5.1 Beta 1 from SVN tag
            Ben Cotton Newbie

            I found the problem.

            The javacc and javac version that I was using was fine ( C://Java/JEE1.5_sdk/jdk//bin/javac.EXE) as its java -version output confirmed

            java version "1.5.0_09"

            The problem was that I was doing my JBoss AS 5 build from a Cygwin shell. The build works perfectly from the native Windows XP command prompt (BTW XP's default command prompt is the worst CLI I have ever experienced). I also downloaded RedHat Fedora Linux and executed the same build from a Windows XP hosted VM (this time using a *real* Unix bash CLI) and the build also worked perfectly.

            Sadly, I need to do work on Windows XP with a reasonable shell (besides Cygwin).

            Has anybody out there had success building JBoss AS 5.x on a windows platform using a third-party shell (besides Cygwin)?