LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-14-2004, 03:01 PM   #1
yea420
LQ Newbie
 
Registered: Aug 2004
Distribution: Red Hat 9.0
Posts: 8

Rep: Reputation: 0
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.
 
Old 08-20-2004, 10:51 AM   #2
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Rep: Reputation: 15
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.
 
Old 08-20-2004, 11:08 AM   #3
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Rep: Reputation: 15
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 ?
 
Old 08-20-2004, 10:10 PM   #4
yea420
LQ Newbie
 
Registered: Aug 2004
Distribution: Red Hat 9.0
Posts: 8

Original Poster
Rep: Reputation: 0
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.
 
Old 08-20-2004, 11:33 PM   #5
binidiot
Member
 
Registered: May 2004
Location: Spain
Distribution: Debian Woody, FreeBSD 5.2.1
Posts: 106

Rep: Reputation: 15
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.....
 
Old 08-21-2004, 02:44 AM   #6
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Rep: Reputation: 15
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
 
Old 08-22-2004, 12:46 PM   #7
yea420
LQ Newbie
 
Registered: Aug 2004
Distribution: Red Hat 9.0
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks a lot guys I will begin trying your suggestions and post back if things go smoothly, Cheers
 
Old 08-29-2004, 07:30 PM   #8
yea420
LQ Newbie
 
Registered: Aug 2004
Distribution: Red Hat 9.0
Posts: 8

Original Poster
Rep: Reputation: 0
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.
 
Old 08-30-2004, 03:49 AM   #9
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Rep: Reputation: 15
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 ...
 
  


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
configuring tomcat and apache on the same system phanee Linux - Software 1 11-05-2005 09:13 AM
doubt on configuring apache2 bruno buys Linux - Networking 5 03-14-2005 02:03 PM
configuring apache2 bob_man_uk Debian 4 01-27-2005 10:17 AM
problem in configuring Tomcat with Apache ambuj Linux - Software 2 04-19-2004 09:02 AM
Java, Tomcat, Apache2.0.47, Mandrake9.2 help lazat Linux - Software 6 12-16-2003 08:33 AM

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

All times are GMT -5. The time now is 04:46 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