This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 136235

Summary: Unabled to delete file from webapp deployed in tomcat
Product: serverplugins Reporter: buurd <buurd>
Component: TomcatAssignee: Petr Hejl <phejl>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description buurd 2008-06-02 07:28:10 UTC
1) Clean and Build a webapp
2) Run the webapp in tomcat
3) Clean and Build the webapp

Gives the following output:
init:
deps-clean:
do-clean:
Deleting directory C:\Documents and Settings\010rolhei\My Documents\NetBeansProjects\Bessy\build
C:\Documents and Settings\010rolhei\My Documents\NetBeansProjects\Bessy\nbproject\build-impl.xml:814: Unable to delete
file C:\Documents and Settings\010rolhei\My Documents\NetBeansProjects\Bessy\build\web\WEB-INF\lib\activation.jar
BUILD FAILED (total time: 15 seconds)

To me it seems being local to Windows (works in OS X for example). 

NetBeans 6.1
Tomcat 5.5.26
Java 1.6
Windows XP
Comment 1 Petr Hejl 2008-06-02 09:13:35 UTC
If you are using default Context implementation you can use antiJARLocking="true" in you context.xml. It should help.

*** This issue has been marked as a duplicate of 112529 ***