A hot-deployed *-service.xml file on EAP 5 is locked on Windows.
Root cause for this issue is that the InputStream is not closed properly, as Alexey discovered:
"Apparently, when InputSource is passed in, the parser calls getSystemId(), getByteStream() and getCharacterStream() on it regardless whether any of the methods invoked previously returns non-null value. Then it uses one of the streams returned and closes just the it has used.
In our impl getCharacterStream() returns wrapped result from getByteStream(). And getByteStream() opens a new stream on each invocation."
- blocks
-
JBPAPP-4240 A hot-deployed *-service.xml file is locked on Windows and cannot be deleted
- Closed