File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Can Log into Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Reply locked New topic

Can Log into Tomcat

Dennis Ehiobu

Joined: Feb 15, 2011
Posts: 2
Please I know this simple for you Gurus for newbies like me am totally.

Am using Apache Tomcat 7 on Windows 7 (64 bit), my JDK 6.1 is 64 bit, my AT 7 is 64 bit, HOME_JAVA is set other AT wont start,

comments have been removed from the C:\apache-tomcat-7.0.19\conf\tomcat-users.xml
contents are:

<?xml version='1.0' encoding='utf-8'?>
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>

Once just once Tomcat/Tomcat worked then nothing works again, I am totally convinced AT is not reading the tomcat-users.xml because when I rename and delete it, I get no error at all just the usual HTTP 401 error, please help, I have tried other forum but I guess they are not interested in simple questions.

P Lease help, I keep seeing comments about Realms but I don understand
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

Please do not post the same question more than once. Please continue the discussion in your original topic.

[Asking smart questions] [About Bear] [Books by Bear]
Consider Paul's rocket mass heater.
subject: Can Log into Tomcat
jQuery in Action, 3rd edition