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 40099

Summary: Deleting WEB-INF from a module converts it to regular directory but does not undeploy it
Product: serverplugins Reporter: Ana.von Klopp <avk>
Component: TomcatAssignee: Pavel Buzek <pbuzek>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P4    
Version: 3.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description Ana.von Klopp 2004-02-13 18:02:40 UTC
To reproduce: create a web module and add a JSP. 
Execute the JSP. 

Delete the WEB-INF directory. It is no longer a 
web module but it stays deployed.
Comment 1 Marek Fukala 2004-02-16 09:09:53 UTC
This seems to me to be quite a strange case - sounds like an
enhancement. I would suggest to prevent users to delete the WEB-INF
folder and web.xml file from the IDE or show a nice warning dialog,
that this would lead to the webmodule became invalid. I wouldn't
handle the case when the user corrupts the structure externally -
after doing that the webmodule continues running until someone tries
to reload it or stop s the whole server. When the server is started
for the next time, there will be some error messages in the server
output, but the user will be able to undeploy the corrupted webmodule
via tomcat instance in server registry.
Comment 2 Pavel Buzek 2004-02-26 23:16:26 UTC
first, we do not undeploy anything now (although Ana would probably
argue we should)
second, the user can still undeploy from server registry
Comment 3 Pavel Buzek 2004-04-16 06:49:51 UTC
problem does not exist in trunk (WEB-INF is always a regular directory
now)
Comment 4 Jiri Skrivanek 2004-09-20 15:56:06 UTC
Verified.