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 30711 - I18N - Deleting WebModule after unmounting it throws Exception
Summary: I18N - Deleting WebModule after unmounting it throws Exception
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: -FFJ-
Hardware: Sun Solaris
: P2 blocker (vote)
Assignee: Petr Jiricka
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2003-02-06 02:04 UTC by Jason Rush
Modified: 2003-02-20 10:40 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 Jason Rush 2003-02-06 02:04:55 UTC
Description: 

BuildID : RC5
JDK     : 1.4FCS
OS      : Solaris8 &* Solaris9 Ja


To Reproduce :

- Mount "application" directory as local directory,load Wizard
  "New Wizard -  Session Bean".

- Create <multibyte>Ejb Session Bean.

- Right click the bean node,choose "Create New EJB Test Application" from the
context menu
 
- Select default entries,Click OK

- It is observed that <multibyte>EJBModule,<multibyte>J2EE Application and
<multibyte>WebModule is created and mounted.

- Unmount the Webmodule which is mounted automatically

- Now delete <multibyte>J2EE Application,<multibyte>EJBModule and now when you
try deleting the <multibyte>Webmodule, the following below exception is thrown


Exception:
**********

Fri Jun 07 15:11:50 IST 2002: org.openide.filesystems.FSException:  oe??Cannot
delete file ??/??_WebModule/WEB-INF in
oe??/home/np122569/navsoft/naveen/FFJOrionRC5/ffjsamples??.??
org.openide.filesystems.FSException: oe??Cannot delete file
??/??_WebModule/WEB-INF in
oe??/home/np122569/navsoft/naveen/FFJOrionRC5/ffjsamples??.??
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$Folder.delete(FileEntry.java:380)
at org.openide.loaders.MultiDataObject.handleDelete(MultiDataObject.java:423)
at org.openide.loaders.DataFolder.handleDelete(DataFolder.java:584)
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.DataFolder.handleDelete(DataFolder.java:574)
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 $Proxy4.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.actionPerformed(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)



Evaluation: 
This bug is caused by the handling of deletion of the WEB-INF directory. That is
closely related to the mechanism for mounting the Web Module. So this is an
architectural issue, which will be addressed by the new Projects infrastructure
and Projects-based Webapps.

A comment.
Comment 1 Jason Rush 2003-02-06 02:06:27 UTC
Transferred from BugTraq 4698785.
Comment 2 naveen 2003-02-20 10:39:39 UTC
Verified the Fix using the below configuration.

BuildID : 030217(Nevada)
JDK     : 1.4.0_02
OS      : Solaris8 Ja & Windows2K Ja

Hence closing the Bug.