You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/06/14 20:03:58 UTC
DO NOT REPLY [Bug 49436] New: Cannot use JMX to save changes to
tomcat-users.xml
https://issues.apache.org/bugzilla/show_bug.cgi?id=49436
Summary: Cannot use JMX to save changes to tomcat-users.xml
Product: Tomcat 6
Version: 6.0.26
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
AssignedTo: dev@tomcat.apache.org
ReportedBy: david.tugby@sky.com
In version 6.0.26 org.apache.catalina.users.MemoryUserDatabase sets readonly =
true. In version 5.5.29 org.apache.catalina.users.MemoryUserDatabase sets
readonly = false. This means that the save method will default to logging an
error message rather than saving the user database file.
public void save()
throws Exception
{
if(getReadonly())
{
log.error(sm.getString("memoryUserDatabase.readOnly"));
return;
}
The message that is displayed in 6.0.26 is:
memoryUserDatabase.readOnly=User database has been configured to be read only.
Changes cannot be saved
I cannot find any documentation or a JMX management bean to set readonly =
false.
Hence the save method I was using in Tomcat 5.0.28 and tomcat 5.5.29 no longer
works.
David Tugby
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49436] Cannot use JMX to save changes to
tomcat-users.xml
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49436
David Tugby <da...@sky.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #2 from David Tugby <da...@sky.com> 2010-06-15 07:39:48 EDT ---
Thanks.
Got this working by pasting the entire entry from
http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html#UserDatabase%20Resources
into my server.xml file. So I must have entered a typo when I tried earlier.
The documentation is not quite correct however.
tomcat-6.0-doc/jndi-resources-howto.html states
"The readonly attribute is optional and defaults to false if not supplied."
In my humble opionion this should be changed to:
"The readonly attribute is optional and defaults to true if not supplied."
Thanks again for the prompt response.
David Tugby
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49436] Documented default for UserDatabase
readonly attribute wrong
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49436
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
Summary|Cannot use JMX to save |Documented default for
|changes to tomcat-users.xml |UserDatabase readonly
| |attribute wrong
--- Comment #3 from Mark Thomas <ma...@apache.org> 2010-06-18 06:43:28 EDT ---
Docs updated for 7.0.x and 6.0.x. Fix will be included in 7.0.1 and 6.0.28
onwards.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 49436] Documented default for UserDatabase readonly attribute
wrong
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49436
--- Comment #4 from Jackie Rosen <ja...@hushmail.com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49436] Cannot use JMX to save changes to
tomcat-users.xml
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49436
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-06-14 16:32:13 EDT ---
Tomcat home page...
http://tomcat.apache.org/
...which links to the Tomcat 6 docs...
http://tomcat.apache.org/tomcat-6.0-doc/index.html
...which has a link for configuration...
http://tomcat.apache.org/tomcat-6.0-doc/config/index.html
...which documents Realms...
http://tomcat.apache.org/tomcat-6.0-doc/config/realm.html
...including the UserDatabaseRealm which in turn links to the JNDI how-to...
http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html#UserDatabase%20Resources
...which describes how to set the readonly attribute.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org