PDA

View Full Version : start-domain hangs ANT


sadovnikov
06-07-2010, 00:37
Hi,

Has anyone tried to invoke "asadmin start-domain" from ANT (using exec)? The server seems to start properly, but start-domain never returns and ANT script hangs.

I found this bug https://issues.apache.org/bugzilla/show_bug.cgi?id=46805, so the cure can be upgrading ANT, but it's too risky for our project now.

Does anyone know other work-around this trouble?

Thanks,
Viktor

kjkoster
06-07-2010, 10:22
Dear Victor,

From the bug report this seems to be an issue related with the in- and output streams of the script. Perhaps you can write a wrapper script for asadmin that runs the command in the background, or you can close the input and/or output streams for that script.

For the latter, read up http://www.linuxtopia.org/online_books/advanced_bash_scripting_guide/io-redirection.html and search for "Closing File Descriptors".

I have no experience doing this, but it may give you a quick hack until you get to the position where upgrading Ant is again possible.

Kees Jan