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.
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)
The problem appears to be in manager application. If I remove the app with admin it is removed correctly.
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.
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.
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
Created attachment 21510 [details] patch
Verified in 200504101800 trunk build - it has GO for release41 branch integration from QE.
I reviewed and agree with the fix.
Adding a reference to relevant Tomcat issue: http://issues.apache.org/bugzilla/show_bug.cgi?id=34399.
Merged to 4.1 branch.
Verified in 4.1 build 200504142205.