• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Tomcat 6 Invalid UserName and Password Unauthorized

 
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
I am mighty! And this is a mighty small ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic