LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-02-2003, 12:48 PM   #1
mlhammer
LQ Newbie
 
Registered: Sep 2003
Distribution: RedHat 9
Posts: 11

Rep: Reputation: 0
Can anyone help with Apache-Tomcat connection??


I am running Apache 2.0.40 and Tomcat 4.1.24 on a RedHat9 server. I can run Apache and Tomcat just fine separately, but I cannot seem to connect the two to handle Tomcat:8080 requests on the Apache port 80.

I have explored many configurations which do not seem to work, and there are just two many changes to narrow the problem down to one area.

First of all, do I need to use mod_jk.so or mod_jk2.so, with these version numbers?

Secondly, if this file is downloaded as an .so extension, can it be directly plugged into the /modules directory, or does it need to be further modified?

Lastly, which config files need to be created and which ones need to be modified?

This configuration is driving me crazy. If anyone can help on any of these points, that would be great.
 
Old 10-12-2003, 12:06 PM   #2
a_morgan
LQ Newbie
 
Registered: Nov 2002
Location: BC, Canada
Distribution: Red Hat 9
Posts: 12

Rep: Reputation: 0
I am going crazy trying to do the same thing.

I have decided to try to link tomcat and apache using jk. The documentaion for jk seemed much better than jk2. But I can't find the binary: mod_jk.so. Did you get it?

I could only find the source and I now can't find any documentation on how to build from source. (There is documenation that comes with it but I can't seem to follow anything about building from source.)
 
Old 10-17-2003, 02:45 PM   #3
buck2bcr
LQ Newbie
 
Registered: Oct 2003
Posts: 11

Rep: Reputation: 0
I am having a similar problem. I am running redhat 9.0, apache 2.0.47 and tomcat 4.1.27

I get to the point of compiling the connector file, but when it completes I have no mod_jk.so file made. I may have traced it to this point in the make:

Quote:
/bin/sh /usr/local/apache/build/libtool --silent --mode=install cp mod_jk.la `pwd`/mod_jk.so
libtool: install: warning: remember to run `libtool --finish /usr/local/apache/modules'
make[1]: Leaving directory `/usr/local/tomcat/connector/jk/native/apache-2.0'
make[1]: Entering directory `/usr/local/tomcat/connector/jk/native'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/usr/local/tomcat/connector/jk/native'
target="all"; \
list='common apache-2.0'; \
for i in $list; do \
echo "Making $target in $i"; \
if test "$i" != "."; then \
(cd $i && make $target) || exit 1; \
fi; \
done;
Making all in common
make[1]: Entering directory `/usr/local/tomcat/connector/jk/native/common'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/tomcat/connector/jk/native/common'
Making all in apache-2.0
make[1]: Entering directory `/usr/local/tomcat/connector/jk/native/apache-2.0'
/bin/sh /usr/local/apache/build/libtool --silent --mode=install cp mod_jk.la `pwd`/mod_jk.so
libtool: install: warning: remember to run `libtool --finish /usr/local/apache/modules'
make[1]: Leaving directory `/usr/local/tomcat/connector/jk/native/apache-2.0'
it seems as if make doesn't add the `pwd` part into the build. Anyone else have any problems like this. If so how did you solve it.

Any help would be appreciated

here is link to some intructions on making the mod_jk.so file ap 2.0.47 tc 4.1.27
 
Old 10-18-2003, 12:25 PM   #4
a_morgan
LQ Newbie
 
Registered: Nov 2002
Location: BC, Canada
Distribution: Red Hat 9
Posts: 12

Rep: Reputation: 0
I ended up getting mine to work.

I am running redhat 9.0, apache 2.0.47 and tomcat 4.1.27. And I looked over the instructions you were following and they are basically the same as what I did but I did not do a make install.

What I did:

cd jk/native
./buildconf.sh
./configure --with-apxs=/usr/local/apache2/bin/apxs
make
cp ./apache-2.0/mod_jk.so /usr/local/apache2/modules/

Keep in mind my apache is in /usr/local/apache2.
And before I do the copy I could see the mod_jk.so in the jk/native/apache-2.0/ directory.
 
Old 10-19-2003, 11:45 AM   #5
buck2bcr
LQ Newbie
 
Registered: Oct 2003
Posts: 11

Rep: Reputation: 0
glad to hear you got it built. I have even tried installing rh 9 on another box and had no luck.

Is there any way you could email me the mod_jk.so file and I'll give it a try?

buck2bcr -at- yahoo -dot- com

(sorry about the phonetic spelling, I'm still trying to recover from a posting on another board)

I'd appreciate it.
 
Old 10-19-2003, 12:18 PM   #6
a_morgan
LQ Newbie
 
Registered: Nov 2002
Location: BC, Canada
Distribution: Red Hat 9
Posts: 12

Rep: Reputation: 0
I sent it.
 
Old 10-19-2003, 08:37 PM   #7
buck2bcr
LQ Newbie
 
Registered: Oct 2003
Posts: 11

Rep: Reputation: 0
Thanks,

I got it. I'll give it a go tomorrow.

I'm still not sure what is going in with my lack of being able to compile it.

I hope yours works.

Thanks again.

******************

I loaded it this morning and it work fine, thanks again

Last edited by buck2bcr; 10-20-2003 at 07:53 AM.
 
Old 10-26-2003, 01:06 AM   #8
kahalabob
LQ Newbie
 
Registered: Oct 2003
Posts: 7

Rep: Reputation: 0
I am having all the same problems.... It doesn't seem that anyone has gotten the jk2 version to work. Is that true? Everything seems to work great until you hit the make install command and then it just won't do it. I never get the mod_jk2.so file anywhere in the system.

I am running RH9, Tomcat 5.12, and Apache 2.0.47....

Should I just go to running jk? Will that work for sure?

Thanks,
Danno
 
Old 10-28-2003, 05:35 PM   #9
buck2bcr
LQ Newbie
 
Registered: Oct 2003
Posts: 11

Rep: Reputation: 0
I haven't done anything using jk2, I've only use the jk version and once I got one for my current build specs it worked perfectly.

You may want to at least give that one a try.

Quote:
Everything seems to work great until you hit the make install command and then it just won't do it. I never get the mod_jk2.so file anywhere...
If you don't have the mod_jk2.so file anywhere then I think your "make" failed. I'm not an expert but I think that the "make install" just takes everything that you made and puts it wherever you told it to. Like in the -prefix tag. I was having a problem with my RH9.0 system making the mod_jk.so file and had to have it sent to me for use (see above). I tried doing the make on three different machines and came up with the same problems during the make. It must be something I'm doing incorrectly.

So, I'd say give the mod_jk.so a look if you can't get jk2 working.
 
Old 11-18-2003, 11:21 PM   #10
renatopia
LQ Newbie
 
Registered: Sep 2003
Location: San Diego, CA
Posts: 5

Rep: Reputation: 0
I got mine to work. Were you able to at least compile the connector. For the Apache 2.0.40 and Tomcat 4.1.27 that I am using, there is only one connector and it does need to be built. Additionally you must have Perl installed because there is something called apxs that uses some Perl script to help build the mod_jk2.so
 
Old 12-13-2003, 02:50 AM   #11
kefen
LQ Newbie
 
Registered: Sep 2003
Location: singapore
Distribution: suse linux 9
Posts: 28

Rep: Reputation: 15
i encounter problems when configure tomcat-apache connection on suse linux9. the file system seems different from the instruction...i can find tomcat_jk.conf at /opt/jakarta/tomcat/conf directory. what should i do to change the configure file in order to connect them?
 
  


Reply


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
Tomcat 5 with Apache twantrd Linux - Software 3 10-18-2004 10:53 PM
Has anybody done Apache 2 + Tomcat 5? ZaijiaN Linux - Software 1 03-30-2004 07:17 PM
grsec signal 11 generates segment faults in Apache/Tomcat connection MJatIFAD Linux - Security 5 12-06-2003 02:16 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration