LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-02-2004, 08:21 AM   #1
paulecoyote
LQ Newbie
 
Registered: May 2004
Location: Dorset, UK
Distribution: Gentoo 2004.2
Posts: 18

Rep: Reputation: 0
Fedora Core 2 + Apache + Tomcat + JDBC


Hi there,
I recently installed Fedora Core 2 with "Everything" selected - kind of wish I didn't now in hindsight but anyhew...

I've been trawling the internet and found several different tutorials on how to build mod_jk2, mod_jk, apache and tomcat... thing is none of them seems to be completely satisifactory

I started off and based things around this:

http://www.linuxjava.net/howto/webapp/

although I had to make a few corrections for spelling mistakes etc... I actually got most of the software working seperately.

Tomcat lost its admin pages - so I replaced the config files with the originals and it worked again - but of course there is no apache integration again.

As a side note I could not uninstall the webserver from the rpm control panel (Add Remove Applications) but I think I managed to point everything over to the new location at /usr/local/apache2

In anycase the webserver works, Tomcat works, and I think even postgres works - but getting them to all work together has been a right pain.

I've also collected this link that partially confirm / through doubt on things in the link above:

http://www.connecties.com/cymulacrum/tomcat5/c834.html

... I've looked at other pages... but if any of you have a definitive guide to getting this stuff working together nicely (preferably with the latest mod_jk2 rather then mod_jk) then that would be great.

Cheers,

Paul
 
Old 06-04-2004, 02:49 AM   #2
paulecoyote
LQ Newbie
 
Registered: May 2004
Location: Dorset, UK
Distribution: Gentoo 2004.2
Posts: 18

Original Poster
Rep: Reputation: 0
Anybody?
 
Old 06-10-2004, 10:20 AM   #3
Browndog
LQ Newbie
 
Registered: Jun 2003
Posts: 8

Rep: Reputation: 0
Hi there I too am trying to do the Apache + Tomcat intergration of Fedora 2, I followed this guide
http://www.connecties.com/cymulacrum/tomcat5/c834.html wich you have also linked too (it does not seem to be loading atm) but any way I was getting this error:

Not Found


The requested URL /MyFirst/HelloWorld was not found on this server.

I put these lines in my /www/conf/httpd.conf file:

#added for tomcat
LoadModule jk2_module modules/mod_jk2.so
JkSet config.file /etc/httpd/conf/workers2.properties

and now I get this error:

Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

The server for the above guide seem to be down, so I found this:

http://www.reliablepenguin.com/clients/misc/tomcat/

which seems to be very similar. I also notice I get this error:

INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/lib/httpd/modules/libjkjni.so:
/usr/lib/httpd/modules/libjkjni.so: undefined symbol: apr_md5_final

in /opt/tomcat/logs/catalina.out

I fell if I spend a few more hours working on it I may get it working, but I am very worried about this last error in catalina.out, I'm pretty sure it means that libjkjni.so has not been compiled correctly. I would like to know if anyone has got this working yet and what flags were used for compiling the libjkjni.so.
 
Old 06-10-2004, 10:36 AM   #4
Browndog
LQ Newbie
 
Registered: Jun 2003
Posts: 8

Rep: Reputation: 0
I have triple checked every setting and found this is the only thing that is going worng

INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/lib/httpd/modules/libjkjni.so:
/usr/lib/httpd/modules/libjkjni.so: undefined symbol: apr_md5_final

I think if I can find a way to correctly compile libjkjin.so on Fedora 2 all my problems will be solved.

if anyone out there is an expert source code compiler and understands make files, they may be able to help me with this

Last edited by Browndog; 06-11-2004 at 05:55 AM.
 
Old 06-12-2004, 03:11 AM   #5
Browndog
LQ Newbie
 
Registered: Jun 2003
Posts: 8

Rep: Reputation: 0
I fixed the libjkjni.so error now I have this error in the apache logs:



[error] shm.create(): error creating shm 70014 End of file found

[error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket

[error] ajp13.service() Error forwarding ajp13:/opt/tomcat/work/jk2.socket 1 1

[error] lb.service() worker failed 120000 for ajp13:/opt/tomcat/work/jk2.socket

[error] lb_worker.service() all workers in error or disabled state

[error] mod_jk2.handler() Error connecting to tomcat 120000, status 503


I assume its a permision error, and dont know how to set the permisions so apache can access jk2.socket
 
Old 07-06-2004, 08:40 AM   #6
ryanrlamothe
LQ Newbie
 
Registered: Jul 2004
Posts: 4

Rep: Reputation: 0
Some better information

Hello,


I am currently working on installing OpenCMS for trial in my corporation. I will be installing OpenCMS on a Redhat Fedora Core 2 system using Apache2 and Tomcat. I have not completed my work on OpenCMS yet, I believe some links of information on both Apache2 and Tomcat installation can be found at:

http://www.opencms.org/opencms/en/index.html

-and-

http://sxs.thexdershome.com/internet_serving/c875.html


One avenue to setting up Apache2 and Tomcat is to use mod_proxy. That way, you can sucessfully install both systems as stand-alone and simply proxy requests from Apache2 to Tomcat and vice-versa. I may try this route in the future, but I plan on implementing mod_jk2 first.


I will keep this thread updated as I progress in the future.
 
Old 07-06-2004, 08:43 AM   #7
paulecoyote
LQ Newbie
 
Registered: May 2004
Location: Dorset, UK
Distribution: Gentoo 2004.2
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks - I'll keep tabs on this thread and look into these links!
 
Old 07-06-2004, 11:53 AM   #8
ryanrlamothe
LQ Newbie
 
Registered: Jul 2004
Posts: 4

Rep: Reputation: 0
Quote:
Originally posted by paulecoyote
Thanks - I'll keep tabs on this thread and look into these links!
Good, I was just going to send you a PM to ask you if you were still following this thread. I will keep it updated.
 
Old 07-06-2004, 04:24 PM   #9
ryanrlamothe
LQ Newbie
 
Registered: Jul 2004
Posts: 4

Rep: Reputation: 0
Also check out:

http://www.pubbitch.org/jboss/mod_jk2.html
 
Old 07-27-2004, 06:58 PM   #10
MeOnTheW3
LQ Newbie
 
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
Hi,

I am doing an install of opencms, too. Exact same purpose and setup. Just wanted to let you know that I am also watching this thread for updates on your progress.

Did you get it working? I tried on many windows systems and endup up with opencms-runtime errors once everything was installed.

Kindests,
 
  


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
Unable to run Tomcat 5.5.9 on Fedora core 4 tech_j Linux - Software 2 09-04-2005 09:17 AM
Install Tomcat into Fedora Core 2 treotan Fedora 4 11-18-2004 07:33 PM
Tomcat 5.0.28 into Fedora Core 2 treotan Linux - Software 3 11-09-2004 09:50 AM
Tomcat on Apache on Fedora 2 Problems praveengot Linux - Networking 0 10-20-2004 05:28 AM
JDBC with Tomcat and DB2 just won't work. proto_frosty Linux - Enterprise 0 06-28-2004 07:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:16 AM.

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