tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gardner, David [IT]" <David.Gard...@citigroup.com>
Subject tomcat-users.xml not written to when not configured to be in defa ult location
Date Wed, 24 Sep 2003 04:54:00 GMT

The Tomcat Administration tool does not appear to write to the
tomcat-user.xml file if it is not located in the default conf directory. I
have configured a UserDatabase to point to a location other than conf in the
tomcat installation for the tomcat-user.xml. For example:

   <!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users -->
    <Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase" description="User database that can
be updated and saved">
    </Resource>
    <ResourceParams name="UserDatabase">
      <parameter>
        <name>factory</name>
        <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
      </parameter>
      <parameter>        <name>pathname</name>
        <value>/home/dg29906/temp/tomcat-users.xml</value>
     </parameter>
    </ResourceParams>

I can add users and change passwords but they are not persisted to the file.
It appears that they are just held in memory until the server is restarted.
However they are persisted to the file as expected if the configuration
points at the default location in conf. Has anyone else seen this behaviour
and been able to fix it? 


David Gardner
Software Developer
Cititech
Level 11, 2 Park Street
Sydney NSW Australia 2000

Phone: 		(+612) 8225 4803
Fax:		(+612) 8225 
Email: 		david.gardner@citigroup.com


Important  Information

This message may contain confidential or proprietary information.  If you
are not the intended recipient, please notify the sender immediately and
delete the message from your system.  You should not copy or use it for any
purpose, nor disclose its contents to any other person.  E-mail transmission
cannot be guaranteed to be secure or error-free.  No guarantee is made that
any attachments are virus free.  We reserve the right to monitor all e-mail
communications.

This e-mail does not take into account your investment objectives or
financial situation and you should obtain advice based on your own
individual circumstances before making an investment decision

This e-mail is made available to you in Australia by Citigroup Global
Markets Australia Pty Limited ABN 64 003 114 832, a licensed securities
dealer and futures broker, a Participating Organisation of the Australian
Stock Exchange Limited and a participant of the Sydney Futures Exchange
Limited.  In New Zealand it is made available through Citigroup Global
Markets New Zealand Limited, a member firm of the New Zealand Stock
Exchange.

Although the information is believed to be reliable, we do not guarantee its
accuracy and it may be incomplete or condensed.  All opinions and estimates
constitute Citigroup's judgement at the date of issue and are subject to
change without notice. Unless stated otherwise, pricing information is
indicative only, subject to change and is not an offer to deal at any price
quoted.  Any reference to the terms of executed transactions is preliminary
only and subject to written confirmation.



Mime
View raw message