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 101129 - commentaries in tomcat-users.xml deleted when starting TC6
Summary: commentaries in tomcat-users.xml deleted when starting TC6
Status: RESOLVED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Sherold Dev
URL: http://issues.apache.org/bugzilla/sho...
Keywords: TOMCAT
Depends on:
Blocks:
 
Reported: 2007-04-16 11:48 UTC by Jaroslav Pospisil
Modified: 2007-04-27 09:46 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (117.84 KB, image/png)
2007-04-16 11:54 UTC, Jaroslav Pospisil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Pospisil 2007-04-16 11:48:15 UTC
Build 200704151800, Tomcat 6.0.10 (checked also on version 6.0.9 with the same
result) 

1)Start IDE with new userdir
2)Go to Runtime tab and add new Tomcat 6 server (use default basedir/do not
click in checkbox)
3)Start Tomcat
4)Try to open Web Applications node
ERROR: Error message appears
REASON: Contents of [tomcat_basedir]\conf\tomcat-users.xml file are deleted and
instead there's empty template only.
I've checked that this happens when I start the server from Netbeans only.
Attaching screenshot of error message.
Comment 1 Jaroslav Pospisil 2007-04-16 11:54:55 UTC
Created attachment 40951 [details]
screenshot
Comment 2 Jaroslav Pospisil 2007-04-16 11:58:22 UTC
The same result is for starting TC6 with custom basedir - changed
tomcat-users.xml looks like this:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
</tomcat-users>
Comment 3 Jaroslav Pospisil 2007-04-16 13:38:42 UTC
Decreasing priority to P2, since only commentaries are deleted - apache changed
template for tomcat-users.xml and I missed added commentaries before and after
user list / if I write manager login tag outside commented section,this tag
remains even after Tomcat start - still dataloss caused by Netbeans,so P2.
Comment 4 Jaroslav Pospisil 2007-04-26 16:26:19 UTC
This is Tomcat 6 bug,since it delete commentaries even if started from console.
Comment 5 Petr Jiricka 2007-04-27 08:24:28 UTC
Is there a bug filed against Tomcat? If not, can we file it? Thanks.
Comment 6 Sherold Dev 2007-04-27 09:46:34 UTC
Unfortunately, I have to close this issue as WONTFIX, since the Tomcat team
doesn't consider this to be a bug, see
http://issues.apache.org/bugzilla/show_bug.cgi?id=40962 .