How to clean leaks in Tomcat?

Why does tomcat-users.xml loses the manager-gui role, username and password that I added after cleaning and restarting the server?

  • So I add <tomcat-users> <role rolename="manager-gui"/> <user username="tomcat" password="s3cret" roles="manager-gui"/> </tomcat-users> save it in tomcat-users.xml, It works fine. But after I clean the sever, the file loses its value. How to fix this issue?

  • Answer:

    What do you mean by cleaning the server? Can you specify the steps you are performing?

Vikesh Pandey at Quora Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.