File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes changed the config file but still not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "changed the config file but still not working" Watch "changed the config file but still not working" New topic
Author

changed the config file but still not working

Jatin sachdev
Ranch Hand

Joined: Jan 21, 2010
Posts: 57
<!--
<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

Joined: Nov 18, 2008
Posts: 433
    
    2
Have you entered it EXACTLY as in your listing? You are aware of the meaning of "<!--" in XML?
Jatin sachdev
Ranch Hand

Joined: Jan 21, 2010
Posts: 57
yes.....

<!-- this is comment
Hauke Ingmar Schmidt
Rancher

Joined: Nov 18, 2008
Posts: 433
    
    2
Not exactly.

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16055
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61187
    
  66

And even if it is read, anything that's commented out is just a comment!


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16055
    
  21

Bear Bibeault wrote:And even if it is read, anything that's commented out is just a comment!


That, too!
Jatin sachdev
Ranch Hand

Joined: Jan 21, 2010
Posts: 57
Thanks for your reply.
I have downloaded the older the version 5.5.3 .
This older version of Tomcat is now working.

Thanks......
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: changed the config file but still not working