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 24057 - impossible to delete tld .jar file after execution
Summary: impossible to delete tld .jar file after execution
Status: CLOSED DUPLICATE of bug 20384
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: -FFJ-
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: sgleason
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-25 02:46 UTC by Mikhail Romanov
Modified: 2003-07-02 08:30 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 Mikhail Romanov 2002-05-25 02:46:23 UTC
Bug exists in FCS RC5 FFJ build.

It's impossible to delete TLD .jar file from WEB-INF/lib 
directory after execution of JSP using this JSP on Tomcat 
server.

How to reproduce:

1. Mount Web Module
2. Create TLD with several tags in another file system and 
create TLD .jar file from it.
3. Cut/Paste .jar file into the lib directory
4. Create JSP using this TLD and execute it on Tomcat
5. Stop Tomcat server and try to delete .jar file from the 
lib directory. Observer the following exception after that:

Fri May 24 18:41:05 PDT 2002: 
org.openide.filesystems.FSException:  Cannot delete file 
WEB-INF/lib/tld.jar in C:\Users\Misha\Tmp.
Annotation: There was an error deleting the jar file 
C:\Users\Misha\Tmp\WEB-INF\lib\tld.jar.
org.openide.filesystems.FSException: Cannot delete file 
WEB-INF/lib/tld.jar in C:\Users\Misha\Tmp.
        at org.openide.filesystems.FSException.io
(FSException.java:78)
        at org.openide.filesystems.LocalFileSystem.delete
(LocalFileSystem.java:321)
        at org.netbeans.core.ExLocalFileSystem.delete
(ExLocalFileSystem.java:75)
        at 
org.openide.filesystems.LocalFileSystem$Impl.delete
(LocalFileSystem.java:659)
        at 
org.openide.filesystems.AbstractFileObject.delete
(AbstractFileObject.java:480)
        at org.openide.loaders.FileEntry.delete
(FileEntry.java:100)
        at 
org.netbeans.modules.jarpackager.JarDataLoader$JarFileEntry
.delete(JarDataLoader.java:374)
        at org.openide.loaders.MultiDataObject.handleDelete
(MultiDataObject.java:413)
        at 
org.netbeans.modules.jarpackager.JarDataObject.handleDelete
(JarDataObject.java:202)
        at 
org.netbeans.modules.web.context.LibJarContentObject.handle
Delete(LibJarContentObject.java:63)
        at org.openide.loaders.DataObject$2.run
(DataObject.java:524)
        at 
org.openide.filesystems.EventControl.runAtomicAction
(EventControl.java:89)
        at 
org.openide.filesystems.FileSystem.runAtomicAction
(FileSystem.java:388)
        at org.openide.loaders.DataObject.delete
(DataObject.java:522)
        at org.openide.loaders.DataNode.destroy
(DataNode.java:219)
        at org.openide.nodes.FilterNode.destroy
(FilterNode.java:399)
        at 
org.openide.explorer.ExplorerActions$DeleteActionPerformer$
DestroyAtomic.invoke(ExplorerActions.java:527)
        at $Proxy3.run(Unknown Source)
        at 
org.openide.filesystems.EventControl.runAtomicAction
(EventControl.java:89)
        at 
org.openide.filesystems.FileSystem.runAtomicAction
(FileSystem.java:388)
        at 
org.openide.explorer.ExplorerActions$DestroyInvoker.run
(ExplorerActions.java:568)
        at 
org.openide.explorer.ExplorerActions$DeleteActionPerformer.
doDestroy(ExplorerActions.java:494)
        at 
org.openide.explorer.ExplorerActions$DeleteActionPerformer.
performAction(ExplorerActions.java:463)
        at 
org.openide.util.actions.CallbackSystemAction.performAction
(CallbackSystemAction.java:109)
        at 
org.openide.util.actions.CallableSystemAction.actionPerform
ed(CallableSystemAction.java:69)
        at org.netbeans.core.ModuleActions$1.run
(ModuleActions.java:105)
        at org.openide.util.Task.run(Task.java:152)
[catch] at 
org.openide.util.RequestProcessor$ProcessorThread.run
(RequestProcessor.java:622)
Comment 1 _ rkubacki 2002-05-27 09:27:47 UTC
assigned
Comment 2 sgleason 2002-05-30 18:22:57 UTC
This is a duplicate of the "bug from hell" (20384) having to do with 
jar files being held captive in WEB-INF/lib in web modules. I guess
this is yet another unfortunate jar being held without bail. 



*** This issue has been marked as a duplicate of 20384 ***
Comment 3 Quality Engineering 2003-07-02 08:25:05 UTC
Resolved for 3.4.x or earlier, no new info since then -> verify.
Comment 4 Quality Engineering 2003-07-02 08:30:47 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.