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 92021 - Project rebuild fails "unable to delete file"
Summary: Project rebuild fails "unable to delete file"
Status: VERIFIED DUPLICATE of bug 112529
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-08 13:55 UTC by Tim Lebedkov
Modified: 2008-03-12 13:27 UTC (History)
1 user (show)

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 Tim Lebedkov 2007-01-08 13:55:23 UTC
rebuild fails after run on a Sun Java System App Server 8

Deleting 13 files from C:\docs\Projekte\CSearchWeb\build\web\WEB-INF\lib
Deleting directory C:\docs\Projekte\CSearchWeb\build
C:\docs\Projekte\CSearchWeb\nbproject\build-impl.xml:726: Unable to delete file
C:\docs\Projekte\CSearchWeb\build\web\WEB-INF\lib\antlr.jar
BUILD FAILED (total time: 11 seconds)
Comment 1 Petr Pisl 2007-01-08 14:56:01 UTC
This is known problem, that some servers don't close an input/stream and then
such jars can not be removed. 
Comment 2 Vince Kraemer 2007-01-12 00:24:01 UTC
does this project use struts?
Comment 3 Vince Kraemer 2007-01-12 01:48:30 UTC
not an interop issue... 6.0
Comment 4 Tim Lebedkov 2007-01-12 08:27:28 UTC
yes
Comment 5 Vince Kraemer 2007-01-12 15:37:07 UTC
This won't fix the jar closing issue "in general", but may help solve your
particular situation:

Try using Struts 1.3.5, http://struts.apache.org/download.cgi#struts135, if you
are currently using 1.2.9. It includes fixes dangling file refs that were in the
struts code...
Comment 6 Vince Kraemer 2007-03-22 22:36:14 UTC
Can you move up to GF V2... they put alot of work into clearing up issues just
like this one.
Comment 7 nouar38 2007-10-05 09:01:32 UTC
GF v2 ur1 b03 on windows/xp and NB 6.0 200710031200 & jdk 1.6 u3: 

Created a new web application with Struts Framework: in the IDE wizard the level is 1.2.9
"Run" item in projects, on the server instance (gf-v2-u1-b03-domain1)
"Build" item in projects, 3 time no issue.
"Clean" item in projects ==>> error
<<
init:
deps-clean:
do-clean:
Deleting directory C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\WebStrutsTest\build

C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\WebStrutsTest\nbproject\build-impl.xml:800: Unable
to delete file C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\WebStrutsTest\build\web\WEB-INF\lib\antlr.jar

BUILD FAILED (total time: 5 seconds)
>>>

will try with 1.3+ level.
Comment 8 Petr Hejl 2007-10-05 09:17:13 UTC
This is probably a duplicate of the issue 112529.
Comment 9 nouar38 2007-10-05 16:00:08 UTC
got the struts 1.3.8 library zip, and the samples zip.
Both unzipped into C:\WINDOWS\Temp\struts-1-3-8

expanded the struts-mailreader-1.3.8.war (jar xf from jdk 1.6 u3) into:
C:\WINDOWS\Temp\struts-1-3-8\struts-1.3.8-apps\struts-1.3.8\apps\struts-mailreader-1.3.8

Created a new web project with existing sources from the upper directory,
was able to Run the application MailReaderDemonstration (deploy to GF v2 ur1 b03).
(registered a user, edit the profile, login/logoff)

But "Clean & Build" (or only clean) of the project, is still complaining about the jar file: antrl-2.7.2.jar
<<
init:
deps-clean:
do-clean:
Deleting directory C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\WebStruts138\build
C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\WebStruts138\nbproject\build-impl.xml:800: Unable
to delete file C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\WebStruts138\build\web\WEB-INF\lib\antlr-2.7.2.jar
BUILD FAILED (total time: 4 seconds)
>>

after undeploy of the app from services/servers this file is still referenced, only WA is to restart the server.
Comment 10 Vince Kraemer 2007-10-05 18:45:16 UTC
What is the domain profile for the AS in this recent test? http://www.netbeans.org/issues/show_bug.cgi?id=92021#desc10
Comment 11 nouar38 2007-10-29 11:58:51 UTC
redid it again with daily 200710231200 & GF v2 ur1-05 in cluster setup, and got the issue again.
Comment 12 nouar38 2007-10-29 14:09:55 UTC
redid the test again with daily 200710231200 & GF v2 ur1-06 in normal setup registered in IDE as local default domain,
and got the issue again. Did this try, after stopping/removing the previous registered as local default domain GF v2
ur1-05 in cluster setup. In both cases, kept the directory deployment enabled.

No issue, if directory deployment is disabled.
Adding myself in cc.
Comment 13 Vince Kraemer 2008-01-08 00:33:47 UTC

*** This issue has been marked as a duplicate of 112529 ***
Comment 14 Tim Lebedkov 2008-03-12 13:27:40 UTC
ok