Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-08-2004, 12:58 PM   #1
Registered: Feb 2004
Location: UK
Distribution: Mandrake 10 Official
Posts: 123

Rep: Reputation: 15
how to get apache and tomcat work together


I want to get my apache2 and tomcat5 work together in my mandrake10 linux. I find some information from web, I should download a connector named md_jk2 or something, but I can not find one for mandrake10. And after download the connector, what should I do?

Old 04-08-2004, 01:09 PM   #2
Senior Member
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
mod_jk is an apache module, check apache's website.

Once Apache is running with mod_jk (and configured) you can reference pages / objects in tomcat (like mypage.jsp or a servlet 'disptable') as if they were a part of the apache web server.


will get passed through Apache to tomcat and returned to the web browser.

hope that helps,
Old 04-08-2004, 01:15 PM   #3
Registered: Feb 2004
Location: UK
Distribution: Mandrake 10 Official
Posts: 123

Original Poster
Rep: Reputation: 15
I search in apache website and can not find mod_jk2

do you anywhere I can download the one for mandrake10(I find some rpm for redhat, fedora and suse)?
Old 04-08-2004, 02:05 PM   #4
Senior Member
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
here's the best download info I've found for mod_jk. If you can't find an RPM specifically for Mandrake your options will be to take an rpm (say for Fedora), tear it apart with rpm2cpio and copy the files manually. But you're best bet will be to compile and install from source.
Old 04-08-2004, 10:58 PM   #5
LQ Newbie
Registered: Aug 2003
Location: Oakland, CA
Distribution: Ubuntu LTS
Posts: 5

Rep: Reputation: 0

Note differences from mod_jk and mod_jk2.

It can be found on the apache website here:

Scroll down the page to the section that says "Tomcat Web Server Connectors" and click on the link that says "JK 2 Binary Releases" then you have some choices. You can click on the link that says "linux" but it only has three versions there:

What I did was after clicking on the link that says "JK 2 Binary Releases" you will end up looking at a directory listing on a mirror site, don't click on any of the distribution directories. but click on the "Parent Directory" link and it will take you to a listing with the generic versions called
jakarta-tomcat-connectors-jk2-src-current.tar.gz (for unix-like systems)
and (for windows).

I found some out-dated directions for the install of it here: but this is for redhat 9.

Good luck!

Last edited by sfwhip; 04-08-2004 at 11:01 PM.
Old 08-26-2004, 02:57 PM   #6
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Rep: Reputation: 30
I know this is off-topic, but if you're gonna quote killer Who tunes, for the love of Pete, please get the lyrics right.

"No one knows what it's like
To be the bad man
To be the sad man
Behind blue eyes

No one knows what it's like
To be hated
To be fated
To telling only lies
... (chorus omitted)
No one knows what it's like
To feel these feelings
Like I do
And I blame you

No one bites back as hard
On their anger
None of my pain and woe
Can show through"
Old 12-06-2004, 09:40 PM   #7
Registered: Jun 2004
Posts: 126

Rep: Reputation: 15
actaully what is the main important for Tomcat and Apache intergration? Why We are not only use Tomcat Web capacbility? Anyone can tell me the reason?
Old 12-06-2004, 10:33 PM   #8
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
I do it because apache creates nice graphic traffic report

Apache is better for serving static pages (faster, more reliable...) while tomcat allows dynamic content.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running jsps in user home directory doesn't work (Apache Tomcat and mod_userdir) jimieee Linux - Networking 0 03-23-2005 10:12 AM
Tomcat 5.5.1 and Apache 2 kpmaddenuk Linux - Software 2 10-30-2004 05:55 AM
Why use Apache with Tomcat rather than just Tomcat itself? davee Linux - Software 1 08-21-2003 09:47 PM
Apache with Tomcat 4.0.3 chuck77 Linux - General 7 09-22-2002 03:57 PM
Tomcat + Apache gilbert_on_line Linux - Software 1 04-18-2001 08:44 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration