tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Schweflinghaus" <SCHWE...@de.ibm.com>
Subject RE: How to configure multiple tomcat instances connecting to apac he using thewarp connector
Date Wed, 28 Aug 2002 15:38:15 GMT

Of course you are right. The problem was, that besides being tomcat-newby,
I'm also a mailing-list-newby. So I created the subject 'How to configure
multiple tomcat instances connecting to apac he using thewarp connector'
twice. My first mail contained the problem description. I'll append it
here. I am sorry for the inconvenience and apologize for my clumsyness, but
I'm learning continously ;-).

to set up a development environment, I try to map multiple instances of
tomcat to apache using the warp connector.
Tomcat instance 1 connects to virtual host tteflon3 and has CATALINA_BASE
set to absolute directory /prod. In /prod/webapps two applications exist
gtfn and soap.
Tomcat instance 2 connects to virtual host tctest1 and has CATALINA_BASE
set to absolute directory /home/tctest1/tomcat. In
/home/tctest1/tomcat/webapps only the application gtfn exists.

Each of the two instances will work fine with tomcat when running alone,
i.e. the WebApp... directives for the other instance are commented out in
the httpd.conf.

When tying to run both together, though, there is a repatingly entry in the
/var/log/httpd/error_log:
[error] Cannot deploy application soap

This error definitely comes from the connection to tomcat instance 2, since
everything is going well, when I put the application soap in the
/home/tctest1/tomcat/webapps folder (a link to /prod/webapps/soap will do).

Can anyone tell how to configure this with the warp connector, allowing
each tomcat instance to have its own applications ?

I got the environment I need working using the AJP13 connector, but I read
that the warp connector should be preferred.
Can anybody tell why and what the main differences are ?

httpd.conf:
...
LoadModule webapp_module       modules/mod_webapp.so
...
AddModule mod_webapp.c
...

<IfModule mod_webapp.c>

<VirtualHost tteflon3>
    DocumentRoot /var/www/html
    ServerName tteflon3

    WebAppConnection teflonConnection warp tteflon3:8108
    WebAppDeploy gtfn teflonConnection /prod
    WebAppDeploy soap teflonConnection /soap
    WebAppInfo /web-inf
</VirtualHost>

<VirtualHost tctest1>
    DocumentRoot /var/www/html
    ServerName tctest1

   WebAppConnection test1Connection warp tctest1:8118
   WebAppDeploy gtfn test1Connection /tctest1
</VirtualHost>

server.xml for tomcat instance 1 connecting to VirtualHost tteflon3:
...
  <Service name="Teflon-Apache">

    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
     port="8108" minProcessors="5" maxProcessors="75"
     enableLookups="true"
     acceptCount="10" debug="0"/>

    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
     name="Teflon" debug="0" defaultHost="tteflon3">

      <Host  className="org.apache.catalina.connector.warp.WarpHost"
       name="tteflon3" debug="0" appBase="webapps" unpackWARs="true">

        <!-- GTFN Tomcat Context from /prod -->
        <Context path="/prod" docBase="gtfn" debug="0" reloadable="false"
                 crossContext="false">
            <Logger className="org.apache.catalina.logger.FileLogger"
                    directory="/prod/gtfn/log"  prefix="gtfn_tomcat" suffix
=".log"
                    timestamp="true"/>
        </Context>

        <!-- SOAP Context -->
        <Context path="/soap" docBase="soap" debug="0" reloadable="true"
                 crossContext="false">
            <Logger className="org.apache.catalina.logger.FileLogger"
                    prefix="soap" suffix=".log"
                    timestamp="true"/>
        </Context>
      </Host>
    </Engine>
  </Service>
...

server.xml for tomcat instance 2 connecting to VirtualHost tctest1:
...
  <Service name="Teflon-Test1">

    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
     port="8118" minProcessors="5" maxProcessors="75"
     enableLookups="true"
     acceptCount="10" debug="0"/>

    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
     name="Test1" debug="0" defaultHost="tctest1">

      <Host className="org.apache.catalina.connector.warp.WarpHost"
       name="tctest1" debug="0" appBase="webapps" unpackWARs="true">

        <!-- GTFN Tomcat Context from /prod -->
        <Context path="/tctest1" docBase="gtfn" debug="0" reloadable
="false"
                 crossContext="false">
            <Logger className="org.apache.catalina.logger.FileLogger"
                    directory="webapps/gtfn/log"  prefix="gtfn_tomcat"
suffix=".log"
                    timestamp="true"/>
        </Context>
      </Host>
    </Engine>
  </Service>
...


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message