You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christopher Dodunski <Ch...@christopher.net.nz> on 2010/10/12 11:22:26 UTC

Tomcat looking for document bases that don't exist

Hi,

I have added an additional <Host> to server.xml, with its own appBase, and
servicing several domains by way of <Alias> elements.  When Tomcat is
restarted, Catalina logs errors relating to not finding document bases. 
These match applications running on my default "localhost" <Host>.

Why is Tomcat looking for them again under my secondary "blog.optomus.com"
<Host>?  And, why is Tomcat also looking for 'manager' and 'host-manager'
here?  Only one application is located at /home/roller/application -
'ROOT'.

**server.xml**

<Engine name="Catalina" defaultHost="localhost">
  <Host name="localhost"  appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">
  </Host>
  <Host name="blog.optomus.com" appBase="/home/roller/application"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">
    <Alias>blog.bread.co.nz</Alias>
    <Alias>blog.capereinga.co.nz</Alias>
    <Alias>blog.doubtlessbay.co</Alias>
    <Alias>blog.christopher.net.nz</Alias>
    <Alias>blog.isaac.net.nz</Alias>
  </Host>
</Engine>


**catalina.2010-10-12.log**

SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base
/home/roller/application/optomus does not exist or is not a readable
directory
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[blog.optomus.com].[/optomus]
has not been started

SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base
/home/roller/application/christopher does not exist or is not a readable
directory
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[blog.optomus.com].[/christopher]
has not been started

SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base
/home/roller/application/host-manager does not exist or is not a readable
directory
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[blog.optomus.com].[/host-manager]
has not been started

SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base
/home/roller/application/manager does not exist or is not a readable
directory
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[blog.optomus.com].[/manager]
has not been started

Chris.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat looking for document bases that don't exist

Posted by Pid <pi...@pidster.com>.
On 12/10/2010 10:22, Christopher Dodunski wrote:
> Hi,
> 
> I have added an additional <Host> to server.xml, with its own appBase, and
> servicing several domains by way of <Alias> elements.  When Tomcat is
> restarted, Catalina logs errors relating to not finding document bases. 
> These match applications running on my default "localhost" <Host>.
> 
> Why is Tomcat looking for them again under my secondary "blog.optomus.com"
> <Host>?  And, why is Tomcat also looking for 'manager' and 'host-manager'
> here?  Only one application is located at /home/roller/application -
> 'ROOT'.
> 
> **server.xml**
> 
> <Engine name="Catalina" defaultHost="localhost">
>   <Host name="localhost"  appBase="webapps"
>     unpackWARs="true" autoDeploy="true"
>     xmlValidation="false" xmlNamespaceAware="false">
>   </Host>
>   <Host name="blog.optomus.com" appBase="/home/roller/application"
>     unpackWARs="true" autoDeploy="true"
>     xmlValidation="false" xmlNamespaceAware="false">
>     <Alias>blog.bread.co.nz</Alias>
>     <Alias>blog.capereinga.co.nz</Alias>
>     <Alias>blog.doubtlessbay.co</Alias>
>     <Alias>blog.christopher.net.nz</Alias>
>     <Alias>blog.isaac.net.nz</Alias>
>   </Host>
> </Engine>
> 
> 
> **catalina.2010-10-12.log**
> 
> SEVERE: Error starting static Resources
> java.lang.IllegalArgumentException: Document base
> /home/roller/application/optomus does not exist or is not a readable
> directory
> INFO: Container
> org.apache.catalina.core.ContainerBase.[Catalina].[blog.optomus.com].[/optomus]
> has not been started
> 
> SEVERE: Error starting static Resources
> java.lang.IllegalArgumentException: Document base
> /home/roller/application/christopher does not exist or is not a readable
> directory
> INFO: Container
> org.apache.catalina.core.ContainerBase.[Catalina].[blog.optomus.com].[/christopher]
> has not been started
> 
> SEVERE: Error starting static Resources
> java.lang.IllegalArgumentException: Document base
> /home/roller/application/host-manager does not exist or is not a readable
> directory
> INFO: Container
> org.apache.catalina.core.ContainerBase.[Catalina].[blog.optomus.com].[/host-manager]
> has not been started
> 
> SEVERE: Error starting static Resources
> java.lang.IllegalArgumentException: Document base
> /home/roller/application/manager does not exist or is not a readable
> directory
> INFO: Container
> org.apache.catalina.core.ContainerBase.[Catalina].[blog.optomus.com].[/manager]
> has not been started


Please provide a directory listing of the contents of each subdirectory
(named by hosts) in tomcat/conf/Catalina/<hostname>


p