tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Catherine Shepherd" <>
Subject Tomcat/Apache/mod_webapp
Date Sat, 08 Jun 2002 23:55:51 GMT
Hi, We've done extensive searching of the archives and the web but failed to
come up with a solution that works.  Anybody cast some light on this?

We're trying to get a multiple-webapp installation of Tomcat 4.0.3 on RedHat
7.2 with Apache 1.3 and mod_webapp (and JDK 1.4).  Apache works fine, Tomcat
works fine standalone, but when we link them together it fails to work.  All
were installed from binaries, the Apache install was part of a Nusphere
install.  We want to run two domains on one Tomcat Server, so the server.xml
looks like the following:

<Server port="8005" shutdown="SHUTDOWN" debug="0">
  <Service name="Tomcat-Apache">
    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
               port="8008" minProcessors="1" maxProcessors="50"
               enableLookups="true" appBase="webapps"
               acceptCount="10" debug="0"/>
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
            name="Tomcat-Apache" debug="0">
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="apache_log." suffix=".txt"
      <Realm className="org.apache.catalina.realm.MemoryRealm" />
      <Host className = "org.apache.catalina.connector.warp.WarpHost"
             unpackWARs="true" >
        <Context path="" docBase="." debug="0" />
      <Host className = "org.apache.catalina.connector.warp.WarpHost"
             unpackWARs="true" >
        <Context path="" docBase="." debug="0" />

The JSP's for each webapp are in the webapps/[webapp-name] directory, hence
the Context.  Both were deployed from IBM Websphere Studio Application
Developer 4.0.3 generated .war's.

The httpd.conf looks like the following (extract) :

LoadModule webapp_module libexec/
AddModule mod_webapp.c
NameVirtualHost *

WebAppConnection warpConnection warp localhost:8008

<VirtualHost *>
DocumentRoot /usr/local/tomcat/jakarta-tomcat-4.0.3/webapps/404th
WebAppDeploy 404th warpConnection /

<VirtualHost *>
DocumentRoot /usr/local/tomcat/jakarta-tomcat-4.0.3/webapps/mytopfive
WebAppDeploy mytopfive warpConnection /

We have also tried this configuration with the "WebAppDeploy .
warpConnection /" per an example at, but get no better

Tomcat seems to start up and initialise the webapps fine, and the logs
reveal no issues.  The logs also reveal good connections from the Apache
mod_webapp when we start Apache, and Apache puts out what appears to be good
news at the command line.  However, loading either of those domains in a
browser gets a 'The page cannot be displayed'.  Other static sites are
served fine through Apache.

Any ideas?  Thanks very very much.

James and Catherine

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message