7 Replies Latest reply on Jul 31, 2005 11:12 PM by Tung Lai Thanh

    sh build.sh deploy

    Tung Lai Thanh Newbie

      Hi ,
      i have resolved above errors ; now there are another errors :

      [root@demo build]# sh build.sh deploy
      : command not foundss-portal-2.0-src/tools/bin/build.sh: line 7:
      : command not foundss-portal-2.0-src/tools/bin/build.sh: line 9:
      /Projects/jboss/jboss-portal-2.0-src/tools/bin/build.sh: /Projects/jboss/jboss-p ortal-2.0-src/tools/bin/common.shlib: line 11: syntax error near unexpected toke ' `{
      /Projects/jboss/jboss-portal-2.0-src/tools/bin/build.sh: /Projects/jboss/jboss-p 'rtal-2.0-src/tools/bin/common.shlib: line 11: `{
      xset: unknown option JVM_MS=32m

      usage: xset [-display host:dpy] option ...
      To turn bell off:
      -b b off b 0
      To set bell volume, pitch and duration:
      b [vol [pitch [dur]]] b on
      To disable bug compatibility mode:
      -bc
      To enable bug compatibility mode:
      bc
      To turn keyclick off:
      -c c off c 0
      To set keyclick volume:
      c [0-100] c on
      To control Energy Star (DPMS) features:
      -dpms Energy Star features off
      +dpms Energy Star features on
      dpms [standby [suspend [off]]]
      force standby
      force suspend
      force off
      force on
      (also implicitly enables DPMS features)
      a timeout value of zero disables the mode
      To control font cache:
      fc [hi-mark [low-mark [balance]]]
      both mark values spcecified in KB
      balance value spcecified in percent (10 - 90)
      Show font cache statistics:
      fc s
      To set the font path:
      fp= path[,path...]
      To restore the default font path:
      fp default
      To have the server reread font databases:
      fp rehash
      To remove elements from font path:
      -fp path[,path...] fp- path[,path...]
      To prepend or append elements to font path:
      +fp path[,path...] fp+ path[,path...]
      To set LED states off or on:
      -led [1-32] led off
      led [1-32] led on
      To set mouse acceleration and threshold:
      m [acc_mult[/acc_div] [thr]] m default
      To set pixel colors:
      p pixel_value color_name
      To turn auto-repeat off or on:
      -r [keycode] r off
      r [keycode] r on
      r rate [delay [rate]]
      For screen-saver control:
      s [timeout [cycle]] s default s on
      s blank s noblank s off
      s expose s noexpose
      s activate s reset
      For status information: q
      xset: unknown option JVM_MX=640m

      usage: xset [-display host:dpy] option ...
      To turn bell off:
      -b b off b 0
      To set bell volume, pitch and duration:
      b [vol [pitch [dur]]] b on
      To disable bug compatibility mode:
      -bc
      To enable bug compatibility mode:
      bc
      To turn keyclick off:
      -c c off c 0
      To set keyclick volume:
      c [0-100] c on
      To control Energy Star (DPMS) features:
      -dpms Energy Star features off
      +dpms Energy Star features on
      dpms [standby [suspend [off]]]
      force standby
      force suspend
      force off
      force on
      (also implicitly enables DPMS features)
      a timeout value of zero disables the mode
      To control font cache:
      fc [hi-mark [low-mark [balance]]]
      both mark values spcecified in KB
      balance value spcecified in percent (10 - 90)
      Show font cache statistics:
      fc s
      To set the font path:
      fp= path[,path...]
      To restore the default font path:
      fp default
      To have the server reread font databases:
      fp rehash
      To remove elements from font path:
      -fp path[,path...] fp- path[,path...]
      To prepend or append elements to font path:
      +fp path[,path...] fp+ path[,path...]
      To set LED states off or on:
      -led [1-32] led off
      led [1-32] led on
      To set mouse acceleration and threshold:
      m [acc_mult[/acc_div] [thr]] m default
      To set pixel colors:
      p pixel_value color_name
      To turn auto-repeat off or on:
      -r [keycode] r off
      r [keycode] r on
      r rate [delay [rate]]
      For screen-saver control:
      s [timeout [cycle]] s default s on
      s blank s noblank s off
      s expose s noexpose
      s activate s reset
      For status information: q
      /Projects/jboss/jboss-portal-2.0-src/tools/bin/build.sh: line 38: check_os: comm and not found
      /Projects/jboss/jboss-portal-2.0-src/tools/bin/build.sh: line 1: convertpath: co mmand not found
      /Projects/jboss/jboss-portal-2.0-src/tools/bin/build.sh: line 1: convertpath: co mmand not found
      /Projects/jboss/jboss-portal-2.0-src/tools/bin/build.sh: line 42: debug: command not found
      /Projects/jboss/jboss-portal-2.0-src/tools/bin/build.sh: line 43: debug: command not found
      xset: unknown option MAX_FD

      usage: xset [-display host:dpy] option ...
      To turn bell off:
      -b b off b 0
      To set bell volume, pitch and duration:
      b [vol [pitch [dur]]] b on
      To disable bug compatibility mode:
      -bc
      To enable bug compatibility mode:
      bc
      To turn keyclick off:
      -c c off c 0
      To set keyclick volume:
      c [0-100] c on
      To control Energy Star (DPMS) features:
      -dpms Energy Star features off
      +dpms Energy Star features on
      dpms [standby [suspend [off]]]
      force standby
      force suspend
      force off
      force on
      (also implicitly enables DPMS features)
      a timeout value of zero disables the mode
      To control font cache:
      fc [hi-mark [low-mark [balance]]]
      both mark values spcecified in KB
      balance value spcecified in percent (10 - 90)
      Show font cache statistics:
      fc s
      To set the font path:
      fp= path[,path...]
      To restore the default font path:
      fp default
      To have the server reread font databases:
      fp rehash
      To remove elements from font path:
      -fp path[,path...] fp- path[,path...]
      To prepend or append elements to font path:
      +fp path[,path...] fp+ path[,path...]
      To set LED states off or on:
      -led [1-32] led off
      led [1-32] led on
      To set mouse acceleration and threshold:
      m [acc_mult[/acc_div] [thr]] m default
      To set pixel colors:
      p pixel_value color_name
      To turn auto-repeat off or on:
      -r [keycode] r off
      r [keycode] r on
      r rate [delay [rate]]
      For screen-saver control:
      s [timeout [cycle]] s default s on
      s blank s noblank s off
      s expose s noexpose
      s activate s reset
      For status information: q
      xset: unknown option JAXP

      usage: xset [-display host:dpy] option ...
      To turn bell off:
      -b b off b 0
      To set bell volume, pitch and duration:
      b [vol [pitch [dur]]] b on
      To disable bug compatibility mode:
      -bc
      To enable bug compatibility mode:
      bc
      To turn keyclick off:
      -c c off c 0
      To set keyclick volume:
      c [0-100] c on
      To control Energy Star (DPMS) features:
      -dpms Energy Star features off
      +dpms Energy Star features on
      dpms [standby [suspend [off]]]
      force standby
      force suspend
      force off
      force on
      (also implicitly enables DPMS features)
      a timeout value of zero disables the mode
      To control font cache:
      fc [hi-mark [low-mark [balance]]]
      both mark values spcecified in KB
      balance value spcecified in percent (10 - 90)
      Show font cache statistics:
      fc s
      To set the font path:
      fp= path[,path...]
      To restore the default font path:
      fp default
      To have the server reread font databases:
      fp rehash
      To remove elements from font path:
      -fp path[,path...] fp- path[,path...]
      To prepend or append elements to font path:
      +fp path[,path...] fp+ path[,path...]
      To set LED states off or on:
      -led [1-32] led off
      led [1-32] led on
      To set mouse acceleration and threshold:
      m [acc_mult[/acc_div] [thr]] m default
      To set pixel colors:
      p pixel_value color_name
      To turn auto-repeat off or on:
      -r [keycode] r off
      r [keycode] r on
      r rate [delay [rate]]
      For screen-saver control:
      s [timeout [cycle]] s default s on
      s blank s noblank s off
      s expose s noexpose
      s activate s reset
      For status information: q
      /Projects/jboss/jboss-portal-2.0-src/tools/bin/build.sh: line 1: convertpath: co mmand not found
      /Projects/jboss/jboss-portal-2.0-src/tools/bin/build.sh: line 54: debug: command not found
      xset: unknown option ANT_LOGGER

      usage: xset [-display host:dpy] option ...
      To turn bell off:
      -b b off b 0
      To set bell volume, pitch and duration:
      b [vol [pitch [dur]]] b on
      To disable bug compatibility mode:
      -bc
      To enable bug compatibility mode:
      bc
      To turn keyclick off:
      -c c off c 0
      To set keyclick volume:
      c [0-100] c on
      To control Energy Star (DPMS) features:
      -dpms Energy Star features off
      +dpms Energy Star features on
      dpms [standby [suspend [off]]]
      force standby
      force suspend
      force off
      force on
      (also implicitly enables DPMS features)
      a timeout value of zero disables the mode
      To control font cache:
      fc [hi-mark [low-mark [balance]]]
      both mark values spcecified in KB
      balance value spcecified in percent (10 - 90)
      Show font cache statistics:
      fc s
      To set the font path:
      fp= path[,path...]
      To restore the default font path:
      fp default
      To have the server reread font databases:
      fp rehash
      To remove elements from font path:
      -fp path[,path...] fp- path[,path...]
      To prepend or append elements to font path:
      +fp path[,path...] fp+ path[,path...]
      To set LED states off or on:
      -led [1-32] led off
      led [1-32] led on
      To set mouse acceleration and threshold:
      m [acc_mult[/acc_div] [thr]] m default
      To set pixel colors:
      p pixel_value color_name
      To turn auto-repeat off or on:
      -r [keycode] r off
      r [keycode] r on
      r rate [delay [rate]]
      For screen-saver control:
      s [timeout [cycle]] s default s on
      s blank s noblank s off
      s expose s noexpose
      s activate s reset
      For status information: q
      /Projects/jboss/jboss-portal-2.0-src/tools/bin/build.sh: line 62: debug: command not found
      /Projects/jboss/jboss-portal-2.0-src/tools/bin/build.sh: line 67: maybe_source: command not found
      /Projects/jboss/jboss-portal-2.0-src/tools/bin/build.sh: line 70: [: =: unary op erator expected
      /Projects/jboss/jboss-portal-2.0-src/tools/bin/build.sh: line 90: die: command n ot found
      /Projects/jboss/jboss-portal-2.0-src/tools/bin/build.sh: line 94: debug: command not found
      /Projects/jboss/jboss-portal-2.0-src/tools/bin/build.sh: line 107: die: command not found
      xset: unknown option ANT_OPTS

      usage: xset [-display host:dpy] option ...
      To turn bell off:
      -b b off b 0
      To set bell volume, pitch and duration:
      b [vol [pitch [dur]]] b on
      To disable bug compatibility mode:
      -bc
      To enable bug compatibility mode:
      bc
      To turn keyclick off:
      -c c off c 0
      To set keyclick volume:
      c [0-100] c on
      To control Energy Star (DPMS) features:
      -dpms Energy Star features off
      +dpms Energy Star features on
      dpms [standby [suspend [off]]]
      force standby
      force suspend
      force off
      force on
      (also implicitly enables DPMS features)
      a timeout value of zero disables the mode
      To control font cache:
      fc [hi-mark [low-mark [balance]]]
      both mark values spcecified in KB
      balance value spcecified in percent (10 - 90)
      Show font cache statistics:
      fc s
      To set the font path:
      fp= path[,path...]
      To restore the default font path:
      fp default
      To have the server reread font databases:
      fp rehash
      To remove elements from font path:
      -fp path[,path...] fp- path[,path...]
      To prepend or append elements to font path:
      +fp path[,path...] fp+ path[,path...]
      To set LED states off or on:
      -led [1-32] led off
      led [1-32] led on
      To set mouse acceleration and threshold:
      m [acc_mult[/acc_div] [thr]] m default
      To set pixel colors:
      p pixel_value color_name
      To turn auto-repeat off or on:
      -r [keycode] r off
      r [keycode] r on
      r rate [delay [rate]]
      For screen-saver control:
      s [timeout [cycle]] s default s on
      s blank s noblank s off
      s expose s noexpose
      s activate s reset
      For status information: q
      /Projects/jboss/jboss-portal-2.0-src/tools/bin/build.sh: line 120: debug: comman d not found
      xset: unknown option ANT_OPTIONS

      usage: xset [-display host:dpy] option ...
      To turn bell off:
      -b b off b 0
      To set bell volume, pitch and duration:
      b [vol [pitch [dur]]] b on
      To disable bug compatibility mode:
      -bc
      To enable bug compatibility mode:
      bc
      To turn keyclick off:
      -c c off c 0
      To set keyclick volume:
      c [0-100] c on
      To control Energy Star (DPMS) features:
      -dpms Energy Star features off
      +dpms Energy Star features on
      dpms [standby [suspend [off]]]
      force standby
      force suspend
      force off
      force on
      (also implicitly enables DPMS features)
      a timeout value of zero disables the mode
      To control font cache:
      fc [hi-mark [low-mark [balance]]]
      both mark values spcecified in KB
      balance value spcecified in percent (10 - 90)
      Show font cache statistics:
      fc s
      To set the font path:
      fp= path[,path...]
      To restore the default font path:
      fp default
      To have the server reread font databases:
      fp rehash
      To remove elements from font path:
      -fp path[,path...] fp- path[,path...]
      To prepend or append elements to font path:
      +fp path[,path...] fp+ path[,path...]
      To set LED states off or on:
      -led [1-32] led off
      led [1-32] led on
      To set mouse acceleration and threshold:
      m [acc_mult[/acc_div] [thr]] m default
      To set pixel colors:
      p pixel_value color_name
      To turn auto-repeat off or on:
      -r [keycode] r off
      r [keycode] r on
      r rate [delay [rate]]
      For screen-saver control:
      s [timeout [cycle]] s default s on
      s blank s noblank s off
      s expose s noexpose
      s activate s reset
      For status information: q
      /Projects/jboss/jboss-portal-2.0-src/tools/bin/build.sh: line 133: debug: comman d not found
      /Projects/jboss/jboss-portal-2.0-src/tools/bin/build.sh: line 136: notice: comma nd not found
      /Projects/jboss/jboss-portal-2.0-src/tools/bin/build.sh: line 140: /bin/ant: No such file or directory
      /Projects/jboss/jboss-portal-2.0-src/tools/bin/build.sh: line 140: exec: /bin/an t: cannot execute: No such file or directory
      ?????????????

      Thank in advanced ,

      Regards
      [/img]

        • 1. Re:  sh build.sh deploy
          Thomas Heute Master

          you obviously have a problem with encoding, try to get the files from the CVS.

          • 2. Re:  sh build.sh deploy
            Tung Lai Thanh Newbie

            Thank you !

            But i don'nt how to set up CVS on linux (fedora2.6.5) and CVS environment .Would you like tell me step by step to get CVS , config and run CVS on my Linux FEDORA computer ?

            Thank in advanced

            Regards

            • 3. SOS .. Re:  sh build.sh deploy
              Tung Lai Thanh Newbie

              I have installed lincvs on FEDORA computer , and then download JbossPortal2.0 with root user ;
              i type : sh build.sh
              new errors occured like following :

              [root@demo build]# sh build.sh
              build.sh: *WARNING* Ignoring environment value for $ANT_HOME
              build.sh: Executing: /root/jboss-portal-2.0/tools/bin/ant -logger org.apache.tools.ant.NoBannerLogger
              Buildfile: build.xml

              _buildmagic:init:
              Trying to override old definition of task property

              _buildmagic:init:module-local-properties:
              [copy] Copying 1 file to /root/jboss-portal-2.0/build

              _configure:cactus:cactus:
              [echo] /root/jboss-portal-2.0/thirdparty/junit-junit/lib

              BUILD FAILED
              file:/root/jboss-portal-2.0/build/../tools/etc/buildfragments/tools.ent:153: taskdef class org.apache.cactus.integration.ant.CactusTask cannot be found


              Thank in advanced

              Regards

              • 4. Re:  sh build.sh deploy
                Thomas Heute Master

                Check if you have the file
                jboss-portal-2.0/thirdparty/jakarta-cactus/lib/cactus-ant.jar

                • 5. Re:  sh build.sh deploy
                  Tung Lai Thanh Newbie

                  Thank you !

                  I have checked boss-portal-2.0/thirdparty/jakarta-cactus/lib/cactus-ant.jar again ; it is there .

                  Would you know about this please ?

                  Thanks again ,

                  Regards

                  • 6. Re:  sh build.sh deploy
                    Tung Lai Thanh Newbie

                    Is there any one know this error ; i don'nt know how to do next . I have deployed jbossportal binary version on linux fedora 2.6.5 ; but i want to deploy jboss portal from source code to write portlet .

                    Thank in advanced

                    Regards

                    • 7. Re:  sh build.sh deploy
                      Tung Lai Thanh Newbie

                      Hi ,
                      I have installed java1.4.2 again and , i run sh build.sh ; Onother errors happend like :

                      BUILD FAILED
                      java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
                      at java.lang.ClassLoader.defineClass0(Native Method)
                      at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
                      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
                      at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
                      at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
                      at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
                      at java.security.AccessController.doPrivileged(Native Method)
                      at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
                      at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
                      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
                      at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
                      at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1104)
                      at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:921)
                      at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
                      at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:543)
                      at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:355)
                      at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
                      at xdoclet.util.LogUtil.getLog(LogUtil.java:26)
                      at xdoclet.loader.ModuleFinder.findModules(ModuleFinder.java:116)
                      at xdoclet.DocletTask.registerModules(DocletTask.java:545)
                      at xdoclet.DocletTask.createDynamicElement(DocletTask.java:336)
                      at org.apache.tools.ant.IntrospectionHelper.createElement(IntrospectionHelper.java:510)
                      at org.apache.tools.ant.helper.ProjectHelperImpl$NestedElementHandler.init(ProjectHelperImpl.java:960)
                      at org.apache.tools.ant.helper.ProjectHelperImpl$TaskHandler.startElement(ProjectHelperImpl.java:871)
                      at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:333)
                      at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1637)
                      at org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
                      at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
                      at org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
                      at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
                      at org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
                      at org.apache.crimson.parser.Parser2.externalParsedEntity(Parser2.java:2984)
                      at org.apache.crimson.parser.Parser2.expandEntityInContent(Parser2.java:2702)
                      at org.apache.crimson.parser.Parser2.maybeReferenceInContent(Parser2.java:2569)
                      at org.apache.crimson.parser.Parser2.content(Parser2.java:1980)
                      at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
                      at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634)
                      at org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
                      at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
                      at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
                      at org.apache.tools.ant.helper.ProjectHelperImpl.parse(ProjectHelperImpl.java:155)
                      at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:117)
                      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:379)
                      at org.jboss.tools.buildmagic.task.module.ExecuteModules$1.run(ExecuteModules.java:311)
                      at org.jboss.tools.buildmagic.task.module.ExecuteModules.executeModule(ExecuteModules.java:326)
                      at org.jboss.tools.buildmagic.task.module.ExecuteModules.execute(ExecuteModules.java:215)
                      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
                      at org.apache.tools.ant.Task.perform(Task.java:341)
                      at org.apache.tools.ant.Target.execute(Target.java:309)
                      at org.apache.tools.ant.Target.performTasks(Target.java:336)
                      at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
                      at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
                      at org.apache.tools.ant.Main.runBuild(Main.java:609)
                      at org.apache.tools.ant.Main.start(Main.java:196)
                      at org.apache.tools.ant.Main.main(Main.java:235)

                      Total time: 1 second

                      Regards