File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 6 Invalid UserName and Password Unauthorized

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
Travis Hein
Ranch Hand
Posts: 161
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Misha Ver
Ranch Hand
Posts: 470
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic