[jboss-dev-forums] [Design of EJB 3.0] - Re: EJB3 Plugin Installer; Multiplatform

scott.stark@jboss.org do-not-reply at jboss.com
Thu Mar 6 19:45:51 EST 2008


Now I'm seeing:


  | Starting Ant> /usr/java/apache-ant-1.6.5\bin\ant -f C:\DOCUME~1\starksm\LOCALS~1
  | \Temp\jbossas-ejb3-plugin-installer\build-install-ejb3-plugin.xml
  | Exception in thread "main" java.lang.RuntimeException: Ensure Apache Ant is properly installed and Environment Variable ANT_HOME is set
  |         at org.jboss.ejb3.installer.Installer.runAnt(Installer.java:376)
  |         at org.jboss.ejb3.installer.Installer.install(Installer.java:201)
  |         at org.jboss.ejb3.installer.Installer.main(Installer.java:152)
  | Caused by: java.io.IOException: CreateProcess: \usr\java\apache-ant-1.6.5\bin\ant -f C:\DOCUME~1\starksm\LOCALS~1\Temp\jbossas-ejb3-plugin-installer\build-install-ejb3-plugin.xml error=193
  |         at java.lang.ProcessImpl.create(Native Method)
  |         at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
  |         at java.lang.ProcessImpl.start(ProcessImpl.java:30)
  |         at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
  |         at org.jboss.ejb3.installer.Installer.runAnt(Installer.java:354)
  |         ... 2 more
  | Shutdown Hook called...
  | Starting Cleanup...
  | Cleanup Complete.
  | 

the problem is that winxp does not know how to run the ant sh script. It only under a cygwin shell. I added an ANT_CMD to allow the path to be specified. That also first failed because the ant.bat file did not have its executable bit set. Once I fixed that, the plugin is running.

You would have to cactch this IOException and then try a bat extension.


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

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



More information about the jboss-dev-forums mailing list