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 104389 - Delete project and source without undeploying is risky
Summary: Delete project and source without undeploying is risky
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
: 114905 (view as bug list)
Depends on: 113023
Blocks:
  Show dependency tree
 
Reported: 2007-05-21 09:12 UTC by alexismp
Modified: 2009-03-30 19:42 UTC (History)
2 users (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 alexismp 2007-05-21 09:12:44 UTC
When deleting a Java EE project from NetBeans (war, ear, ...) if the user choses
the option to delete files from filesystem and that project is still deployed,
the app server may end up in an unstable state (especially with GlassFish v1).

The delete project dialog should at least mention to the developer that he
should undeploy first the application before deleting it if not force/help him
doing so.
Comment 1 _ ludo 2007-05-25 20:53:09 UTC
This is a real bug. Undeploy should  be called if the server is running.
If the server is not running, the server at startup should detect the app is not
there anymore, emit a warning in the log and clean it up. If it does not, file a
bug on the server.
Comment 2 Petr Jiricka 2007-08-16 14:05:28 UTC
Tomas was just looking into a similar issue recently.
Comment 3 Tomas Mysik 2007-08-16 16:32:29 UTC
Unfortunately there's no API for Undeploy action as well as for checking if the server is running or not.
See issue 113023 against j2eeserver.
Comment 4 Tomas Mysik 2007-09-17 14:43:34 UTC
*** Issue 114905 has been marked as a duplicate of this issue. ***
Comment 5 Tomas Mysik 2008-02-25 11:05:02 UTC
API for Undeploy action still missing => TM future.
Comment 6 Vince Kraemer 2009-03-30 17:40:03 UTC
I think phejl resolved this... but I will let him update the issue, since I might not understand the situation completely.
Comment 7 Petr Hejl 2009-03-30 19:42:11 UTC
The clean target is now undeploying the application if server is running. Clean is called before deletion - closing the
issue as fixed.