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 36455 - Deleting tomcat dir from user directory should work
Summary: Deleting tomcat dir from user directory should work
Status: RESOLVED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-06 21:14 UTC by Ana.von Klopp
Modified: 2008-12-23 23:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ana.von Klopp 2003-10-06 21:14:23 UTC
I had set up a set of instructions for a demo of 
the web app functionality, which included cleaning 
out the work directory of tomcat (in case you 
create several modules with the same packages, 
which is likely in the demoing context). 

Jesse Glick interpreted this as deleting the 
tomcat directory from the user directory. However, 
doing so while the IDE is running (even if the 
server itself isn't) apparently leads to problems 
(I can't remember right what it was right now; in 
any case you have to restart the IDE to fix it). 

Jesse's motivation: 

However it's not quite like deleting a directory 
in the IDE 
*installation* which is of course at your own 
risk. The tomcat406_base 
dir is in the *user directory* and is created on 
demand by the tomcatint 
module when it wants to run Tomcat - it is 
essentially a disposable 
directory. So it feels like it should be safe to 
"revert" the user 
directory to its state before you ran Tomcat for 
the first time, by 
deleting this subdirectory. I suppose tomcatint is 
storing some extra 
piece of information elsewhere which tells it that 
there is already a 
tomcat406_base dir in the userdir and that it 
should not autocreate one 
- this seems a little weird to me.
Comment 1 Petr Jiricka 2004-01-15 18:51:14 UTC
I'd guess that the server registry holds some information from the
basedir in memory. The current behavior I believe is that basedir is
created when you open server registry. This code has changed
drastically in Tomcat 5, but the basic behavior may be the same.

A counterargument against waiting with the creation until I actually
deploy is that some users may want to tweak the Tomcat configuration
by hand editing the text file before they start the server, and
creation of the basedir on deployment makes it harder.

There are some additional issues: the data displayed in the UI of the
Tomcat plugin is backed by the actual files, so what data should be
displayed in the basedir does not exist? How should user modifications
be handled? I can also imagine that creating the plugin UI which may
or may not be backed by a file will be quite difficult.
Comment 2 Pavel Buzek 2004-01-16 22:43:17 UTC
I do not see this as a priority for 3.6
Comment 3 Jayashri Visvanathan 2008-12-23 23:31:04 UTC
Tomcat 4.0 no longer supported and this based on 3.5. Please reopen if the bug is applicable to supported versions for
NetBeans 6.5