Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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
 
Old September 1st, 2011, 07:16 PM
Registered User
 
Join Date: Sep 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Greetings,

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:
Quote:
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:
Code:
<?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

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  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"
                type="org.apache.catalina.UserDatabase"/>

</Context>
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.





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.