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 40540 - ISE - context path is already in use
Summary: ISE - context path is already in use
Status: VERIFIED DUPLICATE of bug 40837
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 3.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-26 21:17 UTC by Marek Fukala
Modified: 2004-09-13 18:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
the relevant catalina output (5.26 KB, text/plain)
2004-02-26 21:20 UTC, Marek Fukala
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2004-02-26 21:17:54 UTC
[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.
Comment 1 Marek Fukala 2004-02-26 21:20:40 UTC
Created attachment 13690 [details]
the relevant catalina output
Comment 2 Jiri Skrivanek 2004-09-10 14:42:39 UTC
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.
Comment 3 Pavel Buzek 2004-09-10 21:50:45 UTC
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 ***
Comment 4 Jiri Skrivanek 2004-09-13 18:06:29 UTC
OK, if there is not an easy way to decide whether application was
deployed from IDE, I agree to close it as a duplicate.