Home  >  Forum  >  Core Java
Post New Query

tomcat-users.xml reset after restart the server


joined on
March 10,2015
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"/>
joined on
March 10,2015
Replied on March 26,2015

If you are using Eclipse IDE then updated the tomcat-users.xml file under Server  in Project Explorer.
joined on
March 15,2013
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

Write Answer








Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us