tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles N. Harvey III" <>
Subject RE: Tomcat with Apache
Date Fri, 04 Jan 2002 14:56:50 GMT
I run on windows for now (my desktop) but in a matter of days i will
move to redhat linux 7.2 for testing.  and soon enough that will
become my production environment.  so i will soon know if i can make
this work on linux and windows.  i'll paste a previous e-mail that
i wrote under this.


The $CATALINA_HOME/conf/server.xml file is already setup the way it should
be.  There is a "Standalone" server instance and a "Tomcat-Apache" instance.
When you do $CATALINA_HOME/bin/ you will see both instances
starting up.

The second instance uses the Warp Connector to connect to Apache.  And it
connects to port 8008.  So what's happening is that Tomcat will server
its requests on 8080 for the Standalone.  But it will take java requests
from Apache on port 8008.  That's how they talk to each other.

The tough part is getting the Warp Connector module to work correctly.
There is libapr.dll, install.txt, license.txt and
The install.txt is pretty clear on what to do.  Drop the .so file into
the correct directory (modules for windows and libexec for unix).
Then modify your httpd.conf in $APACHE_HOME/conf.

Add lines like these:

	LoadModule webapp_module libexec/

	AddModule mod_webapp.c

To their appropriate places.  Its pretty easy.  There are lines that look
like it but are usually commented out.  Just put these two underneath all
the others.

Then you map all your applications thusly:

	WebAppConnection conn      warp  localhost:8008
	WebAppDeploy     examples  conn  /examples

The install.txt does not tell you where to add this section, so I stuck it
under "ServerName" in httpd.conf.

Stop Apache and Tomcat.  Start Tomcat.  Start Apache.  Should work.
If not I'm not really sure because it all worked ok for me.  A big key
is that Tomcat always has to be started first.

For win32:
For linux:
For Solaris:
If these links wrap sorry about that.
There is also a small description of what I am telling here in the
  /bin directory:


Charlie Harvey


-----Original Message-----
From: Cressatti, Dominique []
Sent: Friday, January 04, 2002 6:05 AM
To: Tomcat Users List
Subject: RE: Tomcat with Apache

>> ...I
>>currently have apache 1.3.* connected to tomcat 4.0.1 with the
>>warp connector.  Works great.  Great concept.

How did you achieve that?
is it on Linux or a different OS?
Can you still serve static page as well
as java pages?
If yes could you show me your http.conf
cos apart from getting tomcat working
am getting absolutely nowhere.


-----Original Message-----
From: Charles N. Harvey III []
Sent: 02 January 2002 16:41
To: Tomcat Users List
Subject: Tomcat with Apache

I am going to run an entire site in java (jsp or velocity) and I
currently have apache 1.3.* connected to tomcat 4.0.1 with the
warp connector.  Works great.  Great concept.


Do I really need Apache?  I am not going to have any html.  All
the pages on the site will be java.  Is tomcat a good enough server
to take a heavily traficked site?  I would say that Apache would
handle the images, but we use a 3rd party (mirror image) for that.

So should I use Apache or not?

Thanks in advance.

Charlie Harvey

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

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

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

View raw message