Tomcat-user.xml is not getting updated when new users are added via RTC
Hi there,
I've an issue whereby the Tomcat-user.xml file is not getting updated when new users are added via RTC. This poses an issue because, the repository permissions that are granted to the users, are only valid so long as the server is not restarted. Once the Jazz Team Server is restarted, all the repository permissions that have been earlier assigned, will dissapear. However the users still exist.
Has someone else has faced a similar issue and fixed it before.
Thanks,
KH
Accepted answer
THIS SOLVED THE PROBLEM FOR ME.
Edit the server.xml file.
<Resource auth="Container" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase" pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase" readonly="false" />
Add the attribute in this connector readonly="false".
The default is readonly="true" which of course if not explicitly changed using the above command will keep the tomcat-users.xml in a read only mode.
Then restart tomcat. Now any changes you make to your Active Users in RTC will update the tomcat-users.xml file.
Comments
1 vote