tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikola Milutinovic <>
Subject Problems with mod_webapp and Apache 2.0
Date Tue, 27 Nov 2001 17:06:03 GMT
Hi folks.

This is not really Apache 2.0 related - I suspect it would do the same on 1.3. 
So, here is my situation.

I have Tomcat 4.01 binary, mod_webapp 20011126 snapshot and Apache 2.0.28

Tomcat standalone works.
Apache 2.0.28 standalone works (although in prefork MPM mode, if that matters).

I have a virtual host defined under Tomcat and I'm trying to connect Apache 
2.0.28 on another machine to Tomcat via WARP. The virtual host on Tomcat works 
as standalone.

This is my Tomcat's server.xml (just the virtual host bit):
<Host name="" debug="0"
       appBase="/usr/users/mercury/webapps" unpackWARs="true">
   <Valve className="org.apache.catalina.valves.AccessLogValve"
          directory="logs"  prefix="mercury_access_log." suffix=".txt"

   <Logger className="org.apache.catalina.logger.FileLogger"
           directory="logs"  prefix="mercury_log." suffix=".txt"
   <DefaultContext cookies="true" reloadable="true"/>
   <Context docBase="/usr/local/java/tomcat-4.01/webapps/manager"
            path="/manager" debug="0" privileged="true"/>
   <Context docBase="/usr/local/java/tomcat-4.01/webapps/tomcat-docs"
            path="/docs" />
   <!-- <Context docBase="addr_book" path="/addr_book" debug="0"/> -->
   <!-- <Context docBase="addr_admin" path="/addr_admin/" debug="0"/> -->
This is my Apache config entry:
<IfModule mod_webapp.c>
   WebAppConnection        Tomcat40        warp
#  WebAppDeploy   addr_book       Tomcat40        /webapp/addr_book
#  WebAppDeploy   addr_admin      Tomcat40        /webapp/addr_admin
   WebAppDeploy    examples        Tomcat40        /webapp/examples

The deployment of any of these contexts fails and Tomcat's log reads:

2001-11-27 18:00:56 [org.apache.catalina.connector.warp.WarpConfigurationHandler]
java.lang.IllegalArgumentException: addChild:  Child name '' is 
not unique
         at org.apache.catalina.core.ContainerBase.addChild(, 
Compiled Code)
org.apache.catalina.core.StandardEngine.addChild(, Compiled Code)
va, Compiled Code)
va, Compiled Code)
Compiled Code)

2001-11-27 18:00:56 
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Error deploying 
web app
lication "examples" under <>

What does this mean? "Child name is not unique"?

Does anyone have a comprehensive doc on deploying with virtualhosts?


To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message