quality@glassfish.java.net

Invoking "asadmin delete-domain" while domain is running(started) will delete some of files/directories.

From: Kana K. <kana.akmt_at_gmail.com>
Date: Thu, 23 Oct 2008 18:49:19 +0900

Hi all,

  According to !SunGlassFish Enterprise Server v3 Prelude
Administration Guide", one must stop the domain before invoking
delete-domain. If you invoke delete-domain while domain is
running(started), command will fail with messages like below ,
however, some of files/directories will be deleted in the background.

--------
Failed to delete C:\glassfishv3\glassfish\domains\domain1.
Some other process may be accessing it.
Please remove the directory manually.
CLI139 Could not delete domain, domain1.
Command delete-domain failed.
--------

And after executing this delete-domain that failed, you will never be
able to invole any command like stop-domain because config/domain.xml
has already gone.

--------
CLI304 Can't find domain.xml. It should be here: C:\glassfishv3\glassfish\domai
ns\domain1\config\domain.xml
Command stop-domain failed.
--------

Do you think this a bug or supposed feature of this command ? Sorry if
this is known issue, I searched in the Issue Tracker but couldn't find
any similar issues.


Thanks,

---
Kana