Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

startup.bat is overwritting tomcat-users.xml

 
Matthew Snow
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Bill
 
Matthew Snow
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It overwrites it even with the out-of-box version. Here is what it has originally:

 
Matthew Snow
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is my catalina log:



[ March 17, 2008: Message edited by: Matthew Snow ]
[ March 17, 2008: Message edited by: Matthew Snow ]
 
Matthew Snow
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Benson Fung
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Matthew,

I also has the same problem with Tomcat 6.0.16. But I can't find any admin package. Can you be more specific?


Thanks
Benson
 
Dave Mulligan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic