tomcat-users.xml reset after restart the server

Asked on March 26, 2015
I am new to Java/Tomcat development and I am seeing this issue where my
tomcat-users.xml
file keeps getting reset.<role rolename= "admin"/>
<role rolename= "student"/>
<user username= "admin" password= "admin" roles= "admin"/>
<use username= "student" password= "student" roles= "student"/>

Replied on March 26, 2015
If you are using Eclipse IDE then updated the tomcat-users.xml file under Server in Project Explorer.

Replied on March 26, 2015
If you are using Eclipse IDE. You need to perform below steps
1-go to <tomcat_home>/confs/tomcat-users.xml and update your user
<role rolename= "admin"/>
<role rolename= "student"/>
<user username= "admin" password= "admin" roles= "admin"/>
<use username= "student" password= "student" roles= "student"/>
2- copy tomcat-users.xml file to Eclipse IDE > Server