aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat integration" Watch "Tomcat integration" New topic
Author

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:
jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-worker.so

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

thanks,
J.C
Ben Souther
Sheriff

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?
http://wiki.apache.org/jakarta-tomcat/UsefulLinks


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
Hi,

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 mod_jk.so file
made changes to the following files:
httpd.conf
server.xml
web.xml

iam not sure that my connector(mod_jk.so) 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.

thanks,

J.C
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
2. workers.properties
3. verify that the worker you define for worker.list=??? is exactly the same as in httpd.conf.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat integration