File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Integrating Tomcat 5 and Apache 2.2

 
Mike London
Ranch Hand
Posts: 1158
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

After a quick search here, I didn't see a good example/resolution/tutorial on how to integrate Tomcat with Apache (mod_jk, etc.). Lots of postings, but no real answers to get people working (at least on the searches I did).

Is there a tutorial or good step-by-step that anyone has used successfully?

There's for example a "Pro Apache" book out there, but I don't know if it has anything on Tomcat/Apache integration.

Any links or suggestion would be appreciated.

Thanks.

- M
 
Tarun Yadav
Ranch Hand
Posts: 134
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried this on three different occasions and finally got it to work the third after sitting down for an hour and a half without distractions and following instructions to the 't' and fiddling around a bit to get my settings right. Unfortunately, I don't remember what all caused my earlier attempts to mess up but I did note that your installation path to Tomcat needs to be without spaces. I'm assuming that it would ideally be at the root of a drive, say something like "e:\Tomcat" to avoid any glitches.

Here's the two step-by-step guides I used.
http://www.onjava.com/pub/a/onjava/2002/11/20/tomcat.html
http://www.serverwatch.com/tutorials/article.php/10825_2203891_2

I still have the configuration files for Apache so if you need I could post the lines I added so you can see if you're missing something.

Also, I had some trouble locating the correct mod_jk connectors; you'll need to look around in the download archives on the Apache site, they're there somewhere.

P.S. I'm running Win XP SP2 and I used Tomcat 5.5 and Apache 2.2 ( not absolutely sure, only installed it to try this out )

Good Luck!
 
Mike London
Ranch Hand
Posts: 1158
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.

I went to the first article, but the very first step didn't work.

I tried to just put in the first connector code into Tomcat's server.xml. However, after putting this code in SERVER,XML (I tried both 'tomcat4' and 'tomcat5' in the org.apache.. line), Tomcat wouldn't even start.

<Connector className="org.apache.ajp.tomcat5.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>

----------

Look forward to any suggestions on what to try next.

-- M
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic