Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Troubleshooting Guide

- Previous: Using asadmin set Command May Produce Unexpected Results
- Next: Solution

## Description

On Windows systems, after running an application, subsequent attempts to undeploy it or redeploy it throw exceptions about the server being unable to delete a file or rename a directory.

On Windows systems, an application may use `getClass().getResource` or `getResourceAsStream` methods to locate a resource inside the application, particularly in `jar` files that are in the application or accessible to it. If the streams remain open, subsequent attempts to redeploy or undeploy the application can fail. In addition, the Java runtime by default caches streams to `jar` files for performance reasons.

- Previous: Using asadmin set Command May Produce Unexpected Results
- Next: Solution

- © 2010, Oracle Corporation and/or its affiliates