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 204320 - Cannot clean web project with REST web services (asm-all-repackaged.jar)
Summary: Cannot clean web project with REST web services (asm-all-repackaged.jar)
Status: VERIFIED DUPLICATE of bug 202419
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-27 11:45 UTC by Jiri Skrivanek
Modified: 2011-10-31 08:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2011-10-27 11:45:14 UTC
It is not possible to clean web project with REST web services because file build\web\WEB-INF\lib\asm-all-repackaged.jar is locked. To reproduce:

- create web project with GlassFish server
- open new file wizard
- choose "Web Services|RESTful Web Services from Patterns"
- click Next
- click Next to confirm "Simple Root Resource"
- provide package and click Finish
- confirm "REST Resource Configuration" with default values (NetBeans will generate..., Add Jersey Library)
- deploy project
- try to clean project but it fails because GlassFish process holds handle of affected jar

Deleting directory D:\Development\builds\nbUserdir-20111027130854\WebApplication3\build
D:\Development\builds\nbUserdir-20111027130854\WebApplication3\nbproject\build-impl.xml:1069: Unable to delete file D:\Development\builds\nbUserdir-20111027130854\WebApplication3\build\web\WEB-INF\lib\asm-all-repackaged.jar
BUILD FAILED (total time: 5 seconds)

Product Version: NetBeans IDE Dev (Build 201110260600)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows XP version 5.1 running on x86; Cp1250; en_US (nb)
Server: GlassFish 3.1.1
Comment 1 Vince Kraemer 2011-10-27 19:21:51 UTC
the root cause matches the root of issue 202419.

*** This bug has been marked as a duplicate of bug 202419 ***