2 Replies Latest reply on Apr 28, 2009 8:17 AM by tom.baeyens

    starting a process on linux in the start jboss ant task

    tom.baeyens

      The ant task StartJBossTask seems to fail on linux

      start.jboss:
      [start-jboss] starting '/mnt/hudson_workspace/workspace/jbpm-jboss-test/jboss-5.0.0.GA/bin/run.sh '...
      [start-jboss] Exception in thread "Thread-0" couldn't start '/mnt/hudson_workspace/workspace/jbpm-jboss-test/jboss-5.0.0.GA/bin/run.sh '
      [start-jboss] at org.jbpm.pvm.internal.ant.Launcher.run(Launcher.java:55)
      [start-jboss] Caused by: java.io.IOException: java.io.IOException: /mnt/hudson_workspace/workspace/jbpm-jboss-test/jboss-5.0.0.GA/bin/run.sh: cannot execute
      [start-jboss] at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
      [start-jboss] at java.lang.ProcessImpl.start(ProcessImpl.java:65)
      [start-jboss] at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
      [start-jboss] at java.lang.Runtime.exec(Runtime.java:591)
      [start-jboss] at java.lang.Runtime.exec(Runtime.java:429)
      [start-jboss] at java.lang.Runtime.exec(Runtime.java:326)
      [start-jboss] at org.jbpm.pvm.internal.ant.Launcher.run(Launcher.java:46)
      [start-jboss] --- Nested Exception ---
      [start-jboss] java.io.IOException: java.io.IOException: /mnt/hudson_workspace/workspace/jbpm-jboss-test/jboss-5.0.0.GA/bin/run.sh: cannot execute
      [start-jboss] at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
      [start-jboss] at java.lang.ProcessImpl.start(ProcessImpl.java:65)
      [start-jboss] at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
      [start-jboss] at java.lang.Runtime.exec(Runtime.java:591)
      [start-jboss] at java.lang.Runtime.exec(Runtime.java:429)
      [start-jboss] at java.lang.Runtime.exec(Runtime.java:326)
      [start-jboss] at org.jbpm.pvm.internal.ant.Launcher.run(Launcher.java:46)
      


      http://hudson.qa.jboss.com/hudson/job/jbpm-jboss-test/8/consoleText

      yet, the file seems to be there in teh workspace

      http://hudson.qa.jboss.com/hudson/job/jbpm-jboss-test/ws/jboss-5.0.0.GA/bin/

      and it came there by just unzipping a jboss distro with ant. so file permissions should be ok, i think.

      here's the java code in the StartJBossTask:

      task.log("starting '" + command + "'...");
       Process process = Runtime.getRuntime().exec(command);
      


      i must be missing something.