-   Linux - Software (
-   -   Configuring Tomcat 5.0.27 to connect with Apache2 using JDK1.2.6 (

yea420 08-14-2004 04:01 PM

Configuring Tomcat 5.0.27 to connect with Apache2 using JDK1.2.6
Ok here we go,

I'm still relatively new to Linux so hopefully this will be a snap for you all. I have set up apache and tomcat and have read that it is good practice to connect them. From searching around the internet I downloaded jakarta-tomcat-connectors-jk-1.2-src-current.tar.gz.

After tar -xvzf'ing it I navigated to the CONNECTOR_HOME/jk/native and went on to use the command:

./configure --with-apxs=/usr/local/apache2/bin/apxs

I have checked the directory to make sure that there is in fact an apxs file there and there is. However as it compiles I get:

configure: error: You must specify a valid --with-apxs path

I have checked to make sure I have Pearl, which I do, and am right out of ideas.. Please help if you can. Below is the last few lines it spits out at me when I issue the configure command:

need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
could not find /usr/local/apache2/bin/apxs
configure: error: You must specify a valid --with-apxs path

I am using RedHat 9.0. Thank you all in advance.

pelgrimforever 08-20-2004 11:51 AM

I'm trying to set up the same thing here ...

I got the java compiler working, that's all for the moment.
Tomcat tells me it's running,
but I just can't sqeeze any servlets out of it.

You would not be planning on using postgresql ?
I can use some help setting this up also.

pelgrimforever 08-20-2004 12:08 PM

ok, stupid, after looking in the catalina log files,
it seemed apache and tomcat had both used port 80.

That's solved now ...

Next, how to get it really online ?

yea420 08-20-2004 11:10 PM

Hey, nice to see someone finally replied, unfortunately we still seem stuck. Here's what I've learned so far.

Tomcat is running on port 8080, Apache on 80

If you type in localhost you should get Apache's page and if you type in localhost:8080 you should get tomcat. I guess what this jdk is supposed to do is divide diffrent work to be done between the 2 ie- servlets going to tomcat, unfortunately I'm still having the same problem as mentioned above. If you end up getting it working together please help me.

binidiot 08-21-2004 12:33 AM -- maybe this will get yall going. I'm still trying to get the JDK and tomcat compiled.....

pelgrimforever 08-21-2004 03:44 AM

why not downloading compiled versions ?

download the jdk at
tomcat at

and these links explain you nicely how to cofigure:
both java and tomcat

specific for tomcat, I always use this guide

yea420 08-22-2004 01:46 PM

Thanks a lot guys I will begin trying your suggestions and post back if things go smoothly, Cheers

yea420 08-29-2004 08:30 PM

I went through the tutorial mentioned above. Fact is it seems to be just to old. I don't know if Apache or Tomcat have made great strides in the last few years but many of the configure files and connectors don't seem to exist anymore. I will keep at it and hopefully post an up-to-date tutorial on how to use the newest versions of Apache and Tomcat together. If anyone has any advice or help, I'm sure I could use it.

pelgrimforever 08-30-2004 04:49 AM

I used this to configure my connector and workers

the connectors need to be downloaded seperately ...

I downloaded apache 2 and tomcat 5.0.27 last week and configured them,
the manuals are for current versions ...

All times are GMT -5. The time now is 04:03 PM.