LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Fedora Core 2 + Apache + Tomcat + JDBC (http://www.linuxquestions.org/questions/linux-newbie-8/fedora-core-2-apache-tomcat-jdbc-188809/)

paulecoyote 06-02-2004 08:21 AM

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

paulecoyote 06-04-2004 02:49 AM

Anybody?

Browndog 06-10-2004 10:20 AM

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.

Browndog 06-10-2004 10:36 AM

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

Browndog 06-12-2004 03:11 AM

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

ryanrlamothe 07-06-2004 08:40 AM

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.

paulecoyote 07-06-2004 08:43 AM

Thanks - I'll keep tabs on this thread and look into these links!

ryanrlamothe 07-06-2004 11:53 AM

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.

ryanrlamothe 07-06-2004 04:24 PM

Also check out:

http://www.pubbitch.org/jboss/mod_jk2.html

MeOnTheW3 07-27-2004 06:58 PM

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,


All times are GMT -5. The time now is 02:56 AM.