• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat 6 - Manager application not available

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using Tomcat 6.0.18. Looks like manager application not available under $CATALINA_BASE/webapps/. How to add manager application into existing tomcat without reinstall tomcat. Will it work if i copy paste manager directory from downloaded Tomcat Zip. Actually this is active server and I don't want to disturb current running applications. Also what is the different between host-Manager directory and Manager directory which available in downloaded Zip.

 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Depending on which Tomcat you download, the Manager app may or may not come pre-installed.

The Tomcat admin and manager webapps are ordinary webapps that just happen to have the purpose of controlling and monitoring Tomcat. As such, they conform to the same architectural constraints as any other webapp. Meaning that they are both WARs.

As I recall, if you download a Tomcat with these apps pre-installed, their WARs have already been exploded as the "manager" and ROOT subdirectories of TOMCAT_HOME/webapps. If you download them separately, you can yourself unzip them to those locations. I don't believe that there's any external Context definition, so it' sufficient to simply drop these directories into TOMCAT_HOME/webapps. You don't even need to restart Tomcat. By default, Tomcat will automatically deploy them once it has detected them in the webapps directory during one of its periodic scans for changes (which happen once a minute more or less).

The only 2 things to allow for is that you WILL need to set up a security realm for these apps (the sample stuff using the TOMCAT_HOME/conf/tomcat-users.xml file is sufficient, just add userid, password and roles as needed). And of course, you need to make sure you have sufficient RAM to run these new webapps in addition to whatever is already running.
 
Vic Suyam
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Tim for the explanation, I copied those manager directory into webapps folder. currently i am getting login page of manager application. but using below credentials i could not access the application. getting 401 Unauthorized error. My tomcat-users.xml configured like below.

<tomcat-users>
<role rolename="manager"/>
<role rolename="standard"/>
<user username="AppDeployer" password="abcd123" roles="manager"/>
<user username="TomTivoli1!" password="abcd123" roles="standard,manager"/>
</tomcat-users>

Please guide me anything i have to taken care for accessing.
 
Tim Holloway
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just a reminder that the userids and passwords are CASE-SENSITIVE.

Beyond that, you cannot use just any old roles. The management webapps have a fixed set of role names that grant access to different functions.

The exact set of role names varies depending on which version of Tomcat you are using. For Tomcat 6, they are about 5 or 6 roles you need to grant to your management app user(s). To get their names, check the Tomcat documentation.
 
Vic Suyam
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Tim, I tried all the ways but its not working. Actually the core necessary for this Manager application is, My Tomcat 6 getting crashed when more number of users accessing it. currently it running with 25 different applications. I want to monitor its performance and memory utilization. Could you please guide me some tool or process to track server performance.
Env details:
Tomcat Version: 6.0.18
OS: Windows Server 2003 R2 (32 Bit)
RAM: 1 GB
 
Tim Holloway
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, you can look at Tomcat's MBeans using the jconsole app that comes with the JDK.

1GB of RAM seems kind of low if you're serving up 25 different applications, but it would depend on how hungry the apps are.

One thing that frequently causes grief when working with JDK versions 5-7 is that Tomcat was prone to running out of PermGenSpace. Especially if apps are re-deployed. JDK8 got rid of the whole PermGen concept, I believe, so that shouldn't be a problem there.
 
Vic Suyam
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Tim
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic