[jboss-dev-forums] [Design of JBoss jBPM] - starting a process on linux in the start jboss ant task

tom.baeyens@jboss.com do-not-reply at jboss.com
Mon Apr 27 14:42:10 EDT 2009


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.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227077#4227077

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227077



More information about the jboss-dev-forums mailing list