https://issues.apache.org/bugzilla/show_bug.cgi?id=55798

--- Comment #3 from Konstantin Kolinko <knst.koli...@gmail.com> ---
(In reply to BJ Chippindale from comment #1)
> 
> 1.  In server.xml the 
> 
> <Resource name="UserDatabase" auth="Container"
>               type="org.apache.catalina.UserDatabase"
>               description="User database that can be updated and saved"
>               factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>               pathname="conf/tomcat-users.xml" />
> 
> - had to be changed to - 
> 
> <Resource name="UserDatabase" auth="Container"
>               type="org.apache.catalina.UserDatabase"
>               description="User database that can be updated and saved"
>               factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>              
> pathname="/usr/local/apache-tomcat-7.0.47/conf/tomcat-users.xml" />
> 

There is no need for such a change. When the value of the pathname attribute is
a relative path, it is interpreted as relative to ${catalina.base}.

The code is in org.apache.catalina.users.MemoryUserDatabase#open().

I am keeping this issue open, as I think the open() method may be improved to
log a message when the file is missing.  It may be a warning
if(this.readonly==true) and an info message otherwise.

Currently it just returns silently.

>
> A wide range of useless information is out there on the web now,

http://tomcat.apache.org/findhelp.html
http://tomcat.apache.org/lists.html#tomcat-users

>  If root it may not behave... but as an ordinary user it did not start. 
>

A tip in advance: Do not forget to apply "chown" to all log and temporary files
that were created when you started Tomcat as root. Those are in
$CATALINA_BASE/logs and $CATALINA_BASE/work.

If those are not accessible, things will go wrong. And if log files are not
writable, you will get no logging.

If you have further questions, ask on the mailing list.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to