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 57679 - Can't undeploy / webapp in bundled Tomcat
Summary: Can't undeploy / webapp in bundled Tomcat
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Sherold Dev
URL: http://issues.apache.org/bugzilla/sho...
Keywords: TOMCAT
Depends on:
Blocks:
 
Reported: 2005-04-08 15:15 UTC by zikmund
Modified: 2006-03-24 13:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch (2.95 KB, patch)
2005-04-09 11:25 UTC, Sherold Dev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zikmund 2005-04-08 15:15:50 UTC
Build 200504071800

1) Go to Runtime tab
2) Start Bundled Tomcat 5.5.7
3) Web Applications | Undeploy '/' web application
4) ERROR:
it is only stopped, not undeployed!

5) Stop Bundled Tomcat
6) ERROR:
Tomcat hangs with error in Output window:

LifecycleException: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/] has not been
started
  at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4231)
Comment 1 Pavel Buzek 2005-04-08 19:15:38 UTC
The problem appears to be in manager application. If I remove the app with admin
it is removed correctly.
Comment 2 Sherold Dev 2005-04-08 22:08:11 UTC
Yes, this seems to be an issue in Tomcat Manager 5.5.x. 
 
I guess, the Tomcat Manager has problems with undeploying applications from 
the server.xml. If it is the case, we could workaround it by deploying the 
default root app by renamimg its context.xml to ROOT.xml and by copying it to 
<tomcat-base>/conf/catalina/localhost. 
Comment 3 Sherold Dev 2005-04-08 23:13:12 UTC
It seems that this workaround works in both Tomcat 5.0 and 5.5. I will commit 
the patch tomorrow. 
 
Btw, deploying the default Tomcat root application is much nicer this way than 
the old way. 
Comment 4 Sherold Dev 2005-04-09 11:24:48 UTC
F. 
 
Checking in src/org/netbeans/modules/tomcat5/TomcatManager.java; 
/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/TomcatManager.java,v  
<--  TomcatManager.java 
new revision: 1.71; previous revision: 1.70 
done 
 
Comment 5 Sherold Dev 2005-04-09 11:25:46 UTC
Created attachment 21510 [details]
patch
Comment 6 zikmund 2005-04-11 14:50:38 UTC
Verified in 200504101800 trunk build - it has GO for release41 branch
integration from QE.
Comment 7 Pavel Buzek 2005-04-11 15:05:04 UTC
I reviewed and agree with the fix.
Comment 8 Sherold Dev 2005-04-11 15:38:02 UTC
Adding a reference to relevant Tomcat issue:

http://issues.apache.org/bugzilla/show_bug.cgi?id=34399.
Comment 9 Sherold Dev 2005-04-12 15:38:46 UTC
Merged to 4.1 branch. 
Comment 10 zikmund 2005-04-15 14:57:52 UTC
Verified in 4.1 build 200504142205.