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.
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)
This is known problem, that some servers don't close an input/stream and then such jars can not be removed.
does this project use struts?
not an interop issue... 6.0
yes
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...
Can you move up to GF V2... they put alot of work into clearing up issues just like this one.
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.
This is probably a duplicate of the issue 112529.
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.
What is the domain profile for the AS in this recent test? http://www.netbeans.org/issues/show_bug.cgi?id=92021#desc10
redid it again with daily 200710231200 & GF v2 ur1-05 in cluster setup, and got the issue again.
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.
*** This issue has been marked as a duplicate of 112529 ***
ok