LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-17-2004, 08:13 PM   #1
sfwhip
LQ Newbie
 
Registered: Aug 2003
Location: Oakland, CA
Distribution: Ubuntu LTS
Posts: 5

Rep: Reputation: 0
Need Help - mod_jk2 connector / Tomcat 5 / Apache 2 / Redhat 9


I need help setting up the mod_jk2 connector for Tomcat 5 to Apache 2 on a Redhat 9 machine and then configuiring them.

Particulars:
------------
Redhat Linux 9: kernal 2.4
Apache version 2.0.40
Sun Java SDK version 1.4.2_04
jakarta-tomcat version 5.0.19
jakarta-tomcat-connector version jk2-2.0.4

I have a server running Redhat 9, Apache 2.0.40, Sun's JAVA SDK 1.4 is installed JAVA_HOME=/usr/java/j2sdk1.4.2_04 and path is set.

When I run:
$java -version
$ javac -help
from anywhere & or with any user it spews the proper information.

I downloaded the most recent version of tomcat from

_jakarta.apache.org/site/binindex.cgi I chose jakarta-tomcat-5.0.19.tar.gz and installed it.

Tested tomcat:

_localhost:8080

and I see the "If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!" page.

At this point the Apache 2 and the Tomcat 5 servers are working independantly with no problem.

I now want to install the connector.

I downloaded jakarta-tomcat-connectors-jk2-src-current.tar.tar

I ran
# tar xvzf jakarta-tomcat-connectors-jk2-src-current.tar.tar

That created a directory called jakarta-tomcat-connectors-jk2-2.0.4-src

I ran
# mv jakarta-tomcat-connectors-jk2-2.0.4-src /usr/src/

So all the connector stuff is now located at

/usr/src/jakarta-tomcat-connectors-jk2-2.0.4-src


1) Is there any more information you need to answer this question?
2) Now what do I do?


Thanks!

--sfwhip


?

Last edited by sfwhip; 04-17-2004 at 08:23 PM.
 
Old 04-20-2004, 10:38 AM   #2
sfwhip
LQ Newbie
 
Registered: Aug 2003
Location: Oakland, CA
Distribution: Ubuntu LTS
Posts: 5

Original Poster
Rep: Reputation: 0
I found something here but it assumes nothings installed.

http://www.reliablepenguin.com/clients/misc/tomcat/
 
Old 04-22-2004, 12:14 AM   #3
softinitiatives
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
Hi ,
did u got ur solution !!
Is ur mod_jk2 connector / Tomcat 5 / Apache 2 / Redhat 9
running fine ??

If Yes , plz advice me as i'm also a newbie.
as i'v followed all ur steps above , but what after that.

Thanks .
 
Old 05-27-2004, 05:53 AM   #4
eddiewang
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
Angry Need help

I need to integrate Apache with Tomcat as well. I'm using the same Redhat 9 Tomca5 and JK2. Did you got any workable solution, coz I'm having problem running the make file. The errors stated below:

/bin/cp: cannot stat `../../../build/jk2/apache2/mod_jk2.la': No such file or di
rectory
make[1]: [../../../build/jk2/apache2//usr/lib/httpd/modules/mod_jk2.so] Error 1
(ignored)
/bin/cp ../../../build/jk2/apache2//usr/lib/httpd/modules/mod_jk2.so ../../../bu
ild/jk2/apache2/mod_jk2.so
/bin/cp: cannot stat `../../../build/jk2/apache2//usr/lib/httpd/modules/mod_jk2.
so': No such file or directory
make[1]: *** [../../../build/jk2/apache2/mod_jk2.so] Error 1
make[1]: Leaving directory `/opt/installer/jakarta-tomcat-5.0.24-src/jakarta-tom
cat-connectors/jk/native2/server/apache2'
make: *** [jk2-build] Error 1
 
Old 05-28-2004, 02:18 AM   #5
sfwhip
LQ Newbie
 
Registered: Aug 2003
Location: Oakland, CA
Distribution: Ubuntu LTS
Posts: 5

Original Poster
Rep: Reputation: 0
Nope, Still working on it.

I still don't have a clue....
 
Old 06-13-2004, 01:57 AM   #6
Browndog
LQ Newbie
 
Registered: Jun 2003
Posts: 8

Rep: Reputation: 0
you will need to edit the make file so that it will compile, run this:

$apu-config --link-ld --libs

you will find that in you apache installation, this will give you a list of librarys needed to link then need to append this list to this line in The Makefile:

JK_LDFLAGS=-lcrypt ${APR_LIBS} -L${exec_prefix}/lib -lpcre -lpcreposix

and change this line also

LIBTOOL=/bin/sh /var/www/build/libtool --silent

to point to on your system libtool eg.


LIBTOOL=/apache/build/libtool

and it should then work
 
  


Reply



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
Apache Tomcat mod_jk connector dashp Linux - Newbie 0 03-24-2005 07:12 PM
How to connect Tomcat 5 and Apache 2.0.48 using mod_jk2 zhangwf Linux - Networking 1 03-20-2004 08:42 AM
How to connect Tomcat 5 and Apache 2.0.48 using mod_jk2 zhangwf Linux - Newbie 0 03-19-2004 08:21 PM
Trying to integrate Apache w/ Tomcat....error message w/ mod_jk2.so mlhammer Linux - General 2 10-06-2003 03:10 AM
Apache Tomcat Connector webee Linux - Software 0 01-24-2003 01:10 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:13 PM.

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