0

Running ant -Dglassfish.home=%AS_HOME% -f deploy.xml recreate.glassfish.domain

Generates the following error.

Execute failed: java.io.IOException: Cannot run program "%AS_HOME%\bin\asadmin.bat": CreateProcess error=2, The system cannot find the file specified

Any Ideas?

Doug Farrell
  • 135
  • 1
  • 3
  • 20

1 Answers1

0

The actual problem is, in the bin-directory there are two files: asadmin.bat and asadmin (Linux-Executable).

Just rename or delete the Linux-Executable and the deployment works fine.