Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Login to the manager

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please explain the how the login into manager application when we start the tomcat works?

after starting the tomcat if you try to access http://localhost:port/manager it will ask for username and password. if you give wrong username it won't allow you to access application. How this appl is desined. I guess that pop up is javascript. and that javascript is capable of contacting datasource. Please help me in understaning this

Thanks in advance,
Ramu.
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Ramu,
I'm no Tomcat guru, but here's how I did it:

The manager is protected by basic authentication (handled by the browser). The popup window you thought was javascript is actually the browser itself prompting for authentication for Tomcat's manager app because it's using BASIC authentication.

To gain access to your manager and admin sites, you need to edit your tomcat-users.xml file and add a role for "manager" and a role for "admin". Once you have done this, you can either add those new roles to an existing user, or create your own.

Here is a link that shows it with screen shots.

You can enable container based security on a web-app by modifying its web.xml and inputing the correct syntax for how you want it to authenticate (eg: FORM,BASIC, etc). If you notice that the Tomcat Admin doesn't have the popup, but an actual page, that's FORM based authentication.

More Info

Hope that helps!
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, if you want to see a GUI type web page, you need to login with:
<a href="http://localhost:8080/manager<b rel="nofollow">/html</b>" target="_blank">http://localhost:8080/manager/html

There are two views to the manager application.
The first is called the command line view.
With it, you just append commands to the url as querystring variables (useful for use in scripts).

The second (the one matching the URL above) looks more like a traditional web app with hyperlinks, etc.
 
No more fooling around. Read this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic