The current nightly build fails due to failure of CastorMappingTest. This test fails because it is unable to delete files that it creates. This is because the xml persistence mechanism leaves open file handles.
The CastorUtil.getMarshaller method creates a FileWriter from a File parameter and passes it to the Marshaller. No reference is retained for the FileWriter. The marshal() method appears to open a stream for writing without closing it.
This problem can be solved by have getMarshaller take a FileWriter param instead of a File. The client can then manually close the FileWriter.