• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

changed the config file but still not working

 
Jatin sachdev
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<!--
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="standard"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="admin" password="tomcat" roles="standard,manager,admin"/>

-->

i have changed the file like this but still its not working when i enter
username :admin
pasword :tomcat
 
Hauke Ingmar Schmidt
Rancher
Posts: 436
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you entered it EXACTLY as in your listing? You are aware of the meaning of "<!--" in XML?
 
Jatin sachdev
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes.....

<!-- this is comment
 
Hauke Ingmar Schmidt
Rancher
Posts: 436
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not exactly.

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you enable the MemoryRealm in the Tomcat server.xml file?

tomcat-users.xml isn't used by Tomcat, it's used by the security realm plugin, and if the plugin isn't enabled - or some other security realm plugin is managing the app, the tomcat-users.xml file won't even be read, much less used.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64715
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And even if it is read, anything that's commented out is just a comment!
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:And even if it is read, anything that's commented out is just a comment!


That, too!
 
Jatin sachdev
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.
I have downloaded the older the version 5.5.3 .
This older version of Tomcat is now working.

Thanks......
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic