You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Robert Hufsky <ro...@gmx.net> on 2008/10/09 22:01:05 UTC

Tomcat 6.0.18 empties tomcat-users.xml

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

--
Robert.Hufsky@gmx.net





Re: Tomcat 6.0.18 empties tomcat-users.xml

Posted by Robert Hufsky <Ro...@gmx.net>.
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

--
Robert.Hufsky@gmx.net




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

>> From: Robert Hufsky [mailto:robert.hufsky@gmx.net]
>> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org


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


RE: Tomcat 6.0.18 empties tomcat-users.xml

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Robert Hufsky [mailto:robert.hufsky@gmx.net]
> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org