Why when I restart the tomcat 8 my created users are deleted?

0

My problem with tomcat is that I change things in tomcat-users since by default it has neither a role nor a user, because I put it on. Until then everything works well and there is no problem, but when for some reason I restart the server or I turn it off and I want to re-enter the manager of tomcat, it asks for the password and the user, but it is not stored anymore but more well deleted and I do not know if tomcat recreates those files.

How do I make it so that I no longer delete that part of the file?

These are the lines that I add.

 <role rolename="manager-gui"/>
  <user username="admin" password="1234" roles="manager-gui"/>

I am currently using the tomcat 8

    
asked by David 10.01.2018 в 20:02
source

1 answer

0

The problem was that in eclipse the paths by default is updated each time the server is started, to solve the problem I did the following:

double click on the tomcat server 8, open a window with several options and where you click on publishing and then in the section of select publishing actions you deactivate the option of update context paths

    
answered by 12.01.2018 / 17:50
source