I'm using apache-tomcat-5.5.26. I'm trying to add a new user with manager role, but each time I run startup.bat tomcat overwrites the tomcat-users.xml with this:
When you break the big rules, you get a lot of little rules.
Tomcat does rewrite the users xml file every time it starts but normally that includes my modifications - do you suppose your modified xml has a syntax error?
How about possible parsing errors - anything in the logs?
Solved it. I had only extracted the core (apache-tomcat-5.5.26.zip). I extracted the admin package (apache-tomcat-5.5.26-admin.zip) on top of that and now it is keeping my changes.
When you break the big rules, you get a lot of little rules.
I had a similar, but different problem with Tomcat 6. Each time it started it would create a new tomcat-users.xml file with no content between the <tomcat-users> and the </tomcat-users> tag. After much wailing and gnashing of teeth and I spotted that all the content that I *thought* was in there was in fact commented out in the default file.
Ho hum. Hope this saves someone some time.
Why should I lose weight? They make bigger overalls. And they sure don't make overalls for tiny ads:
Gift giving made easy with the permaculture playing cards