Re: Tomcat 6.0.18 empties tomcat-users.xml

2008-10-10 Thread Robert Hufsky

Hi,

thanks a lot, you are right, they are commented out and I did not see
that.

At least for me it was a bit unexpected that Tomcat clears at
least parts of  a configuration file, but thats OK.

best regards

Robert

--
[EMAIL PROTECTED]




On Oct 9, 2008, at 22:20, Caldarale, Charles R wrote:


From: Robert Hufsky [mailto:[EMAIL PROTECTED]
Subject: Tomcat 6.0.18 empties tomcat-users.xml

Before starting, $CATALINA_HOME/conf/tomcat-users.xml contains the
default user entries.


Look again - they're all commented out.


After starting Tomcat, $CATALINA_HOME/conf/tomcat-users.xml is pretty
much empty and looks like

?xml version='1.0' encoding='utf-8'?
tomcat-users
/tomcat-users


That's expected behavior.  If you don't want Tomcat to rewrite the  
file on startup, set the readonly attribute to true in the  
Resource element for UserDatabase in the conf/server.xml file.


 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE  
PROPRIETARY MATERIAL and is thus for use only by the intended  
recipient. If you received this in error, please contact the sender  
and delete the e-mail and its attachments from all computers.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 6.0.18 empties tomcat-users.xml

2008-10-09 Thread Robert Hufsky

Hi,

I installed Tomcat 6.0.18 on

Mac OS 10.4.11 /  java version 1.5.0_16 and
Ubuntu Hardy / java version 1.6.0_06

and in both cases I get the following strange behaviour:

Before starting, $CATALINA_HOME/conf/tomcat-users.xml contains the  
default user entries.
After starting Tomcat, $CATALINA_HOME/conf/tomcat-users.xml is pretty  
much empty and looks like


?xml version='1.0' encoding='utf-8'?
tomcat-users
/tomcat-users

The log files do not show any error message.

My installation procedure was: unpack the tar file, cd to  
$CATALINA_HOME, fire up bin/startup.sh.


Anything I did do completely wrong ?

kind regards

Robert

--
[EMAIL PROTECTED]