2 Replies Latest reply on Feb 14, 2007 7:42 AM by nils_kassube

    Building JBoss Portal 2.4.1 on SLES 10

    nils_kassube

      Guten Tag.

      I'm trying to build the souce release (fetched as tarball from SourceForge, not via CVS) on SuSE Linux Enterprise Server 10.

      /bin/ant is refered (why?) somewhere in the build scripts, so let's ln -s /usr/bin/ant to /bin/ant. Then:

      pentaho:~/jboss-portal-2.4.1-src/build # sh build.sh
      : command not found2.4.1-src/tools/bin/common.shlib: line 7:
      : command not found2.4.1-src/tools/bin/common.shlib: line 9:
      'root/jboss-portal-2.4.1-src/tools/bin/common.shlib: line 11: syntax error near unexpected token `{
      'root/jboss-portal-2.4.1-src/tools/bin/common.shlib: line 11: `{
      xset: unable to open display ""
      xset: unable to open display ""
      /root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 38: check_os: command not found
      /root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 40: convertpath: command not found
      /root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 41: convertpath: command not found
      /root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 42: debug: command not found
      /root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 43: debug: command not found
      xset: unable to open display ""
      xset: unable to open display ""
      /root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 53: convertpath: command not found
      /root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 54: debug: command not found
      xset: unable to open display ""
      /root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 62: debug: command not found
      /root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 67: maybe_source: command not found
      /root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 70: [: =: unary operator expected
      /root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 94: debug: command not found
      /root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 107: die: command not found
      xset: unable to open display ""
      /root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 120: debug: command not found
      xset: unable to open display ""
      /root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 133: debug: command not found
      /root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 136: notice: command not found
      Buildfile: build.xml does not exist!
      Build failed
      --cut--

      Calling ant directly also doesn't work. The error message:

      BUILD FAILED
      /root/jboss-portal-2.4.1-src/tools/etc/buildfragments/buildmagic.ent:256: The following error occurred while executing this line:
      /root/jboss-portal-2.4.1-src/tools/etc/buildfragments/buildmagic.ent:349: Could not create task or type of type: depend.

      Ant could not find the task or a class this task relies upon.

      Cheers,
      Nils

        • 1. Re: Building JBoss Portal 2.4.1 on SLES 10
          theute

          You can try to either:
          1 - put the ant libraries from tools/lib to your ant lib directory and you ant like you tried.
          *or*
          2 - use the embedded one, unfortunately few things are not done right in this package and need a fix, go to the build directory and type the following commands:

          cd ~/jboss-portal-2.4.1-src/build
          dos2unix build.sh
          dos2unix ../tools/bin/common.shlib
          chmod u+x ../tools/bin/ant
          dos2unix ../tools/bin/ant
          sh build.sh
          


          • 2. Re: Building JBoss Portal 2.4.1 on SLES 10
            nils_kassube

            Danke. Should I add a Jira issue with your solution?

            Building works fine now. Using build.sh deploy or deploy-exploded to overwrite an existing installation based on the binary distribution didn't work but this is only due to name mismatches (the SAR is exploded in the binary dist but the deploy-exploded target uses an -exploded prefix and the standard deploy target of course can't overwrite the exploded SAR in the binary dist)