AnsweredAssumed Answered

activiti-5.10: 'ant demo.start' error on Mac OS X/Lion

Question asked by excaliber on Dec 5, 2012
Latest reply on Dec 5, 2012 by excaliber
'ant demo.start' fails for me with "couldn't find executable for script h2.start".  JAVA_HOME and ANT_HOME are pointing to java 7 and ant 1.8.2 or 1.7.1 on Mac/Lion.  Here's build output below including including verbose output for the error:

#############
bos-mp3kw:setup mhessler$ ant demo.start
Buildfile: /Users/mhessler/akamai/activiti-5.10/setup/build.xml

demo.install:

internal.cfg.create:
     [copy] Copying 1 file to /Users/mhessler/akamai/activiti-5.10/setup/build/activiti-cfg
      [zip] Building zip: /Users/mhessler/akamai/activiti-5.10/setup/build/activiti-cfg.jar
     [echo] copying configuration to ../workspace/activiti-engine-examples/src/main/config
    [unzip] Expanding: /Users/mhessler/akamai/activiti-5.10/setup/build/activiti-cfg.jar into /Users/mhessler/akamai/activiti-5.10/workspace/activiti-engine-examples/src/main/config

internal.classpath.libs:

internal.taskdef.launch:

h2.start:
     [echo] starting H2 database…

BUILD FAILED
/Users/mhessler/akamai/activiti-5.10/setup/build.xml:208: couldn't find executable for script /Users/mhessler/akamai/activiti-5.10/apps/h2/h2.start
   at org.activiti.engine.impl.ant.LaunchTask.getExecutable(LaunchTask.java:85)
   at org.activiti.engine.impl.ant.LaunchTask.execute(LaunchTask.java:45)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
   at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.Target.execute(Target.java:357)
   at org.apache.tools.ant.Target.performTasks(Target.java:385)
   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
   at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
   at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
   at org.apache.tools.ant.Main.runBuild(Main.java:758)
   at org.apache.tools.ant.Main.startAnt(Main.java:217)
   at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
   at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
#############

The directory is correct but it seems LaunchTask class can't find 'h2.start.sh' unless 'h2.start' is symlinked to it (in which case other scripts fail similarly).  Does Mac OS require other known steps I'm overlooking?
Mark

Outcomes