Search code examples
springnetbeansglassfish-3

Is there any solution for this annoying error?


I am using NetBeans 7.0 and Glassfish 3.1 with Spring, version 3.0.2 and often I receive errors like this one:

"someProjectName\nbproject\build-impl.xml:1060: Unable to delete file SomeProjectname\build\web\WEB-INF\lib\antlr-2.7.6.jar"

Anyone have any ideas what could be the cause for this?


Solution

  • It is a not a bug, It may happen due to a number of reasons:

    1. the jar is still executing.(in memory)
    2. Some page is open which is using the jar.
    3. The explorer window containing the folder which contains the jar is open.

    There may be other reasons too...but I solved the problem on more than one occasions by eliminating the above three conditions.

    See if it works for u.