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

Summary: Can't undeploy / webapp in bundled Tomcat
Product: serverplugins Reporter: zikmund <zikmund>
Component: TomcatAssignee: Sherold Dev <sherold>
Status: CLOSED FIXED    
Severity: blocker Keywords: TOMCAT
Priority: P2    
Version: 4.x   
Hardware: All   
OS: All   
URL: http://issues.apache.org/bugzilla/show_bug.cgi?id=34399
Issue Type: DEFECT Exception Reporter:
Attachments: patch

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.