tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felipe Moreno - Realweb Soluções <>
Subject mod_webapp: How to make it work with tomcat 4 and Apache 2.0.40 ?
Date Wed, 13 Nov 2002 19:30:13 GMT
Hi List Members!

  I'm having some headache here installing and configuring webapp for
  If anyone could help me I will thank a lot!

This is the scene:
- Linux 7
- Apache 2.040
- Tomcat 4 (last version)

   I have several "virtualhosts" installed in my apache already configured
to un php, perl, ssi and manu others.
   I already installed Tomcat 4 first and it worked fine like "standalone".
So I was able to access it using the (default por). My
apache is running very fine with about 30 virtual hosts configured each one
to have his own permissions and directories. Now, I want to run Apache like
de main server and use tomcat only to "proccess" jsp and servlets things. I
found in connectors a good way to do it. So, I started to read about it and
started to try to install the mod_jk2 connector that use AJP1.2/AJP1.3. I
couldn't do it cause I didn't find the right files and in the middle of the
proccess I read that mod_webapp is much easier to install than jk2. So, I
started to install mod_webapp for Apache.
   I got the "source" package from an read about the
installation. I found that I needed APR to use web_app and some JARS files
compiled with ANT. I unzip (untared) the tar file and executed the command
./configure and after the command make. I executed after the command
./support/  in the directory of APR (source files). So, I
executed the command ./configure --with-apxs and It generated the I put it in the modules directory of Httpd (Apache
   After this, I inserted the line LoadModule webapp_module
modules/ in the httpd.conf (addModule isn't necessary according
to the Apache 2 documentation) and inserted the three lines below in each of
the Virtualhosts in the VH file:

WebAppConnection ceplacom-conn warp localhost:8008
WebAppDeploy ceplacom-sos ceplacom-conn /
WebAppDeploy ceplacom-webapp ceplacom-conn /_webapp

   So, now I will show how my server.xml is configured in Tomcat <dir>:

<?xml version='1.0' encoding='utf-8'?>

<Server port="8005" shutdown="SHUTDOWN" debug="5">

  <Service name="Tomcat-Apache">

    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
     port="8009" minProcessors="1" maxProcessors="5"/>

    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
     port="8008" minProcessors="1" maxProcessors="5"
     enableLookups="false" appBase="webapps"
     acceptCount="10" debug="0"/>

 <Engine className="org.apache.catalina.connector.warp.WarpEngine"
     name="Apache" debug="0" appBase="webapps">

     <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="apache_log." suffix=".txt"
      <Realm className="org.apache.catalina.realm.MemoryRealm" />

      <Host name="">
       <Alias name=""/>
       <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
        append="true" />

       <Context path="/" docBase="/path/to/virtualhost">
       <Context path="/_webapp"



	The Problem:

   When I have this configuration above, I try to run the Apache webserver
(httpd) and get the below error message:

Failed to start apache :
Starting httpd: Syntax error on line 67 of /etc/httpd/conf.d/virtual.conf:
Invalid port number (p<1) No "Port" statement found

Anyone know what could be wrong? or missing?
Any step by step to install webapp???

Thanks in advance for any help!

Best Regards!

Felipe Moreno

-----Mensagem original-----
De: Turner, John []
Enviada em: quarta-feira, 13 de novembro de 2002 16:47
Para: 'Tomcat Users List'
Assunto: RE: WARP or Jk2 (Coyote)? Or something else?

> -----Original Message-----
> From: Lee Grey []
> Sent: Wednesday, November 13, 2002 1:41 PM
> To: Tomcat Users List
> Subject: RE: WARP or Jk2 (Coyote)? Or something else?


> I have a second Linux box that has Tomcat 4.1.12 on it.  I'd
> like to use JK2
> to connect this box to the existing Apache server running on the first
> machine.  Is this possible?  First of all, can I use JK2 with
> Apache 1.3.22?
> Second, can Apache utilize both WARP and JK2 in the same instance?

As far as I know, yes, yes, and yes.  The Apache directives for both are
completely different, I see no reason why Apache would get confused between
them, but then again I haven't seen anyone use that configuration.

> As an alternative, I was thinking about installing Apache 2
> on this second
> Linux box and making it the primary web server, once it's all up and
> running.  Would that be preferable to using Apache 1.3?

In my opinion, for long term stability, moving to Apache 2 ASAP is the way
to go.  The 1.3 tree is dead except for serious bugs and security fixes, as
far as I know.  By moving to Apache 2 (and JK2) you open yourself up to a
lot more options as time progresses.

> Sincerely,
> Lee Grey
> Grey Matter


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

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

View raw message