Try placing the literal path to the manager in there instead of the
${catalina.home} variable.

On Mon, Aug 24, 2009 at 11:09 AM, Wesley Acheson
<wesley.ache...@gmail.com>wrote:

> Hi,
>
> I'm using the following configuration.
> *VERSION*: Tomcat 6.0.20*
> OS*: Fedora core 9
> *uname -a*: Linux attacker.myriad.local 2.6.27.25-78.2.56.fc9.i686 #1 SMP
> Thu Jun 18 12:47:50 EDT 2009 i686 i686 i386 GNU/Linux
> *install path*: /home/servers/apache-tomcat-6.0.20
>
> On *another* machine (windows and my desktop). I'm running Apache HTTP
> which
> is connected via AJP. I don't think thats relevant to my query but you seem
> to want all the details one can give.
>
> Basically my problem is I have added hosts to the server as follows in
> server.xml (please note I've removed comments for brevity and everything
> before service.)
>
>  <Service name="Catalina">
>
>    <Connector port="8180" protocol="HTTP/1.1"
>               connectionTimeout="20000"
>               redirectPort="8543" />
>    <Connector port="8109" protocol="AJP/1.3" redirectPort="8543" />
>
>
>    <Engine name="Catalina" defaultHost="localhost">
>
>      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
>             resourceName="UserDatabase"/>
>
>      <!-- Define the default virtual host
>           Note: XML Schema validation will not work with Xerces 2.2.
>       -->
>      <Host name="localhost"  appBase="webapps"
>            unpackWARs="true" autoDeploy="true"
>            xmlValidation="false" xmlNamespaceAware="false">
>      </Host>
>      <Host name="applications.westest.example.com"
>            appbase="/home/servers/applications.westest"
>            unpackWARs="true" autoDeploy="true"
>            xmlValidation="false" xmlNamespaceAware="false">
>      </Host>
>      <Host name="cashier.westest.example.com"
>            appbase="/home/servers/cashier.westest"
>            unpackWARs="true" autoDeploy="true"
>            xmlValidation="false" xmlNamespaceAware="false">
>      </Host>
>      <Host name="communication.westest.example.com"
>            appbase="/home/servers/communication.westest"
>            unpackWARs="true" autoDeploy="true"
>            xmlValidation="false" xmlNamespaceAware="false">
>      </Host>
>    </Engine>
>  </Service>
>
> Now to try to add the manager application to each domain following the
> instructions found at
> http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html i've added a
> manager.xml to each of my hosts. For example
> /home/servers/apache-tomcat-6.0.20/conf/Catalina/
> cashier.westest.example.com/manager.xml the contents of this file are as
> follows.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <Context docBase="${catalina.home}/webapps/manager"
>         privileged="true" antiResourceLocking="false"
> antiJARLocking="false">
> </Context>
>
> However whenever I alter this file (or restart) I get the following in
> catalina.out
>
> Aug 24, 2009 5:04:14 PM org.apache.catalina.startup.HostConfig
> checkResources
> INFO: Undeploying context [/manager]
> Aug 24, 2009 5:04:14 PM org.apache.catalina.startup.HostConfig
> deployDescriptor
> WARNING: A docBase /home/servers/apache-tomcat-6.0.20/webapps/manager
> inside
> the host appBase has been specified, and will be ignored
> Aug 24, 2009 5:04:14 PM org.apache.catalina.core.StandardContext
> resourcesStart
> SEVERE: Error starting static Resources
> java.lang.IllegalArgumentException: Document base
> /home/servers/apache-tomcat-6.0.20/./manager does not exist or is not a
> readable directory
>        at
>
> org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)
>        at
>
> org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4048)
>        at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
>        at
>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>        at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>        at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
>        at
>
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
>        at
>
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
>        at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
>        at
> org.apache.catalina.startup.HostConfig.check(HostConfig.java:1274)
>        at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:296)
>        at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>        at
>
> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
>        at
>
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
>        at
>
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
>        at
>
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
>        at java.lang.Thread.run(Thread.java:619)
> Aug 24, 2009 5:04:14 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error in resourceStart()
> Aug 24, 2009 5:04:14 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error getConfigured
> Aug 24, 2009 5:04:14 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/manager] startup failed due to previous errors
> Aug 24, 2009 5:04:14 PM org.apache.catalina.core.StandardContext stop
> INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[
> cashier.westest.example.com].[/manager] has not been started
>
> The path in this file seems to imply that my manager is at
> /home/servers/apache-tomcat-6.0.20/./manager it should be
> /home/servers/apache-tomcat-6.0.20/webapps/manager. *Where is it getting
> this path from?* It seems to have the right docBase when I get the doc base
> from the resources.
>

Reply via email to