Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 23rd, 2011, 04:34 AM
Registered User
Join Date: Aug 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default [Apache_Tomcat]: $CATALINA_HOME/webapps/host-manager/manager.xml

Hi there,

I am a newbie to Apache Tomcat. While studying the host-manager application, I found the file $CATALINA_HOME/webapps/host-manager/manager.xml. This file seems to be the configuration file for the manager application (not the host-manager):

<Context docBase="${catalina.home}/webapps/manager" .../>

I wonder what the file is used for? I tried to configure the file but neither manager application nor host-manager application is affected.

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old September 1st, 2011, 07:16 PM
Registered User
Points: 19, Level: 1
Points: 19, Level: 1 Points: 19, Level: 1 Points: 19, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Sep 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts


Wow. You found the manager.xml file under "$CATALINA_HOME/webapps/host-manager/"? Did you also find a manager.xml under "$CATALINA_HOME/webapps/tomcat-docs" or "$CATALINA_HOME/webapps/jsp-examples"? According to the "Professional Apache Tomcat 5" (PAT5) book:
Originally Posted by PAT5 book
The manager.xml file is located under $CATALINA_HOME/webapps/ for Tomcat 4.1 and under the application base for your host in Tomcat 5.x (e.g. $CATALINA_HOME/conf/Catalina/localhost/). If you have multiple virtual hosts, you need to configure a manager for each virtual host via a manager.xml file.
From my experience, the manager.xml file goes under $CATALINA_HOME/conf/Catalina/localhost/. As an example, here is a default manager.xml:
<?xml version="1.0" encoding="UTF-8"?>

  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at


  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  See the License for the specific language governing permissions and
  limitations under the License.

    Context configuration file for the Tomcat Manager Web App

    $Id: manager.xml 565211 2007-08-13 00:09:38Z markt $


<Context docBase="${catalina.home}/server/webapps/manager"
         privileged="true" antiResourceLocking="false" antiJARLocking="false">

  <!-- Link to the user database we will get roles from -->
  <ResourceLink name="users" global="UserDatabase"

This was pulled from a Tomcat 5.5.28 implementation. Look familiar?

Now, according to the "PAT5" book, you need 2 things for proper configuration of the Manager app; manager context entry and deployment descriptor. The manager.xml is the deployment descriptor, but you have to have the Context entry in $CATALINA_HOME/conf/server.xml.

From here, if we want to go any further in figuring out which configurations you need, we would need to know the exact version of Tomcat you are running.

HTH. Let us know.
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuration manager monika.vasvani ASP.NET 2.0 Basics 1 June 6th, 2008 12:49 PM
Password Manager katsarosj VB.NET 2002/2003 Basics 4 January 30th, 2004 12:35 AM
Enterprise Manager Jan_Ma Classic ASP Databases 1 October 17th, 2003 08:44 AM
Analysis Manager ColdFusionRO SQL Server 2000 1 July 25th, 2003 05:39 PM

All times are GMT -4. The time now is 11:24 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.