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 Tomcat 6 Invalid UserName and Password Unauthorized Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 6 Invalid UserName and Password Unauthorized" Watch "Tomcat 6 Invalid UserName and Password Unauthorized" New topic
Author

Tomcat 6 Invalid UserName and Password Unauthorized

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,

I have installed Tomcat 6 .
when i am accessing the server using http:localhost:8080

Its asking for username and password (When i used tomcat , tomcat , admin , admin ) combinations .An anauthorized message is displayed .

So i edited tomcat-users and added


and restarted , but stull its not working .

Please help .


Save India From Corruption - Anna Hazare.
Travis Hein
Ranch Hand

Joined: Jun 06, 2006
Posts: 161
so, if you want to get into the tomcat, manager, localhost:8080/manager/html

the user you use needs to be in the "manager" role

and to get into the /admin area the user needs to be in the "admin" role

so this example makes the tomcat user be both manager and admin roles



I'm pretty sure the roles "tomcat" and "role1" are examples and useless in practice.

hmm, though the way you had it the test user should have been able to get into the /manager/html area. (but wouldn't have been able to get into the admin area)


Error: Keyboard not attached. Press F1 to continue.
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
Ravi Kiran V wrote:
I have installed Tomcat 6 .
when i am accessing the server using http:localhost:8080

Its asking for username and password (When i used tomcat , tomcat , admin , admin ) combinations .An anauthorized message is displayed .


You did something wrong. http://localhost:8080/ should display Tomcat welcome page. Where did you get Tomcat 6?
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

sorry its my mistake.

I found that on 8080 port some other application is running .

So i installed tomcat on 8081 . Now everything is fine .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 6 Invalid UserName and Password Unauthorized