Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Tomcat and the fly likes Tomcat integration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat integration" Watch "Tomcat integration" New topic

Tomcat integration

James Clarke
Ranch Hand

Joined: Oct 04, 2004
Posts: 148
Hi all,

Iam having a hell of a time trying to integrate tomcat with apache. I want static pages to be served by apache and servlets/jsp to be served by tomcat.

I haven't had much luck finding definitive documentation on this procedure.
I have downloaded the binary connector:

any tips or advise on how to go about the integration would be appreciated.

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Originally posted by James Clarke:

I haven't had much luck finding definitive documentation on this procedure.

Have you looked here?

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
James Clarke
Ranch Hand

Joined: Oct 04, 2004
Posts: 148

thanks for the link. I found some useful information on the configuration files and the tomcat connector, but still having problems accessing servlets and jsp files.
when i try to open a jsp file it does not show any of the jsp features...
and when i try open a servlet iam getting not found error..

the details of how i did the integration are:
build the tomcat connector(uses ajp13) from src to produce the file
made changes to the following files:

iam not sure that my connector( is working properly, is there a way of testing this ?

i am using apache 2.0 and tomcat5.5, any other tips would be appreciated.


Craig Jackson
Ranch Hand

Joined: Mar 19, 2002
Posts: 405
You should not have to do anything to your web.xml to get the connector to work.

The thing about getting the connector to work is that you got to connect the dots.

In my limited experience, I have found that tomcat for the most part, should be "tweeked" last. All you need is simple "HelloWorld" application deployed to test the connection. I believe by default the server.xml is setup for the ajp13. The ports 8009 and 8005(shutdown) are already configured.

Most of the problems I encountered was on the Apache and Connector side. So my recommendation would be reset tomcat back to its original configuration.

Then verify:
1. httpd.conf
3. verify that the worker you define for worker.list=??? is exactly the same as in httpd.conf.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Tomcat integration
jQuery in Action, 3rd edition