dev@glassfish.java.net

domain.xml.bak rename problem

From: Tom Mueller <Tom.Mueller_at_oracle.com>
Date: Thu, 17 Jun 2010 10:52:46 -0500

What is the significance of the following log message showing up in
server.log?

[#|2010-06-17T08:34:27.953-0700|SEVERE|glassfish3.1|null|_ThreadID=30;_ThreadName=Thread-1;|Could not rename C:\files\hudson\workspace\admin-devtests-v3.1\glassfishv3\glassfish\domains\domain1\config\domain.xml to C:\files\hudson\workspace\admin-devtests-v3.1\glassfishv3\glassfish\domains\domain1\config\domain.xml.bak|#]

This is showing up on our admin devtests run on Windows (21 times). We
also have 15 test failures that appear to be related to not being able
to make changes to the domain.xml file (for example, a missing <server>
element when trying to start an instance) and a failed xpath test that
is checking the domain.xml file to see if it really got changed.

The tests pass when run manually on my Windows system (but this message
only shows up 3 times rather than 21 times).

Is it possible that something is keeping a file descriptor open to the
domain.xml file, which causes Windows to have trouble deleting the
backup copy after it is renamed to domain.xml.bak?

Tom