tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikola Milutinovic <Nikola.Milutino...@ev.co.yu>
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="Mercury.ev.co.yu" debug="0"
       appBase="/usr/users/mercury/webapps" unpackWARs="true">
   <Valve className="org.apache.catalina.valves.AccessLogValve"
          directory="logs"  prefix="mercury_access_log." suffix=".txt"
          pattern="common"/>

   <Logger className="org.apache.catalina.logger.FileLogger"
           directory="logs"  prefix="mercury_log." suffix=".txt"
           timestamp="true"/>
   <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"/> -->
</Host>
------------------------------------------------------------
This is my Apache config entry:
-------------------------------
<IfModule mod_webapp.c>
   ServerName              Legba.ev.co.yu:80
   WebAppConnection        Tomcat40        warp    Mercury.ev.co.yu:8008
#  WebAppDeploy   addr_book       Tomcat40        /webapp/addr_book
#  WebAppDeploy   addr_admin      Tomcat40        /webapp/addr_admin
   WebAppDeploy    examples        Tomcat40        /webapp/examples
</IfModule>
-------------------------------

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 'legba.ev.co.yu' is 
not unique
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java, 
Compiled Code)
         at 
org.apache.catalina.core.StandardEngine.addChild(StandardEngine.java, Compiled Code)
         at 
org.apache.catalina.connector.warp.WarpConfigurationHandler.deploy(WarpConfigurationHandler.ja
va, Compiled Code)
         at 
org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(WarpConfigurationHandler.ja
va, Compiled Code)
         at 
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java, 
Compiled Code)
         at java.lang.Thread.run(Thread.java:484)

2001-11-27 18:00:56 
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Error deploying 
web app
lication "examples" under <http://Legba.ev.co.yu:80/webapp/examples/>
----------------------------------------

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

Does anyone have a comprehensive doc on deploying with virtualhosts?

Nix.


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message