com.sun.enterprise.deployment.backend.IASDeploymentException

Cannot delete existing directory C:\glassfish\domains\domain1\applications\j2ee-apps\ABCommerceEAR, possibly due to one or more open files or streams; these may interfere with later deployment attempts so you may need to manually delete this directory and/or restart the server to release the open files

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web159

  • via Oracle Community by zambizzi, 11 months ago
    Cannot delete existing directory C:\glassfish\domains\domain1\applications\j2ee-apps\ABCommerceEAR, possibly due to one or more open files or streams; these may interfere with later deployment attempts so you may need to manually delete this directory and/or restart the server to release the open files
  • Could not rename C :\work\assrc\publish\glassfish\domains\domain1\applications\j2ee-apps\blog5 to C :\work\assrc\publish\glassfish\domains\domain1\applications\j2ee-apps\blog5_old
  • via Coderanch by bhaskaritp naidu, 7 months ago
    Error expanding archive C:\glassfish\domains\domain1\applications\j2ee-apps\StatelessSessionProjectEAR\StatelessSessionProject.jar; please see the server log file for more information
  • Stack trace

    • com.sun.enterprise.deployment.backend.IASDeploymentException: Cannot delete existing directory C:\glassfish\domains\domain1\applications\j2ee-apps\ABCommerceEAR, possibly due to one or more open files or streams; these may interfere with later deployment attempts so you may need to manually delete this directory and/or restart the server to release the open files at com.sun.enterprise.deployment.backend.AppDeployer.cleanAndCheck(AppDeployer.java:313) at com.sun.enterprise.deployment.backend.AppDeployer.liquidateAppDirAndStubsDirIfTheyHappenToExist(AppDeployer.java:285) at com.sun.enterprise.deployment.backend.AppDeployer.predeploy(AppDeployer.java:167) at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:128) at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169) at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95) at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:739) at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174) at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.