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: [email protected]
ReportedBy: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]