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.
[20040226] Follow this scenario: 1) run the IDE with fresh userdir 2) convert sampledir to web and execute it 3) remove default server instance 4) add the instance back 5) execute the wm again After the second deployment 'java.lang.IllegalStateException: Context path /sampledir is already in use' exc. is printed into IDE output. The whole stack is attached. This seems to be likely caused by the already existing (deployed) webmodule with the some context. In fact the webmodule is the some - but the deploy action causes the tomcat prints the said error message. This is a minor issue in the described case, but I can imagine similar situations causing this problem. I do not see so far into the code, so please consider if the some cannot happen in a more common situation and if so, plese raise the priority.
Created attachment 13690 [details] the relevant catalina output
Raising priority because it can be easily reproduced in NB4.0: - redeploy web application on default server - stop the server - change server port (properties on node Runtime|Server Registry|Tomcat 5 Servers|Bundled Tomcat) - redeploy the same web application => it fails Even restart of IDE doesn't help. Build 200409100847, JDK1.5.0-b63.
I take it as a duplicate of #40837. I understand that this is a different way to encounter an application with the same context being deployed, but I think removing and adding server is not a very common operation (other then when testing). So I will treat it just as a different app with the same context. After all there is no way to be _sure_ that it is the same application. It may have been deployed again outside of IDE, etc. so it is not ok to simply undeploy the existing app. *** This issue has been marked as a duplicate of 40837 ***
OK, if there is not an easy way to decide whether application was deployed from IDE, I agree to close it as a duplicate.