LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Configuring Tomcat 5.0.27 to connect with Apache2 using JDK1.2.6 (http://www.linuxquestions.org/questions/linux-software-2/configuring-tomcat-5-0-27-to-connect-with-apache2-using-jdk1-2-6-a-217590/)

yea420 08-14-2004 03: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 10: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 11:08 AM

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 10: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-20-2004 11:33 PM

http://www.linux-sxs.org/internet_serving/book1.htm -- maybe this will get yall going. I'm still trying to get the JDK and tomcat compiled.....

pelgrimforever 08-21-2004 02:44 AM

why not downloading compiled versions ?

download the jdk at www.sun.com
tomcat at http://jakarta.apache.org/site/binindex.cgi

and these links explain you nicely how to cofigure:
both java and tomcat
http://www.yolinux.com/TUTORIALS/Lin...ialTomcat.html

specific for tomcat, I always use this guide
http://jakarta.apache.org/site/binindex.cgi

yea420 08-22-2004 12:46 PM

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

yea420 08-29-2004 07: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 03:49 AM

http://www.blueoxygen.org/aconix/ser...3F3EF1B2EE7203

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 11:44 PM.