HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Simple Apache 2 Tomcat 5 Integration with Debian 3.1 (http://www.howtoforge.com/forums/showthread.php?t=3595)

fernandoch 9th April 2006 18:46

Simple Apache 2 Tomcat 5 Integration with Debian 3.1
 
Hello all,

I have opened this thread to try to help those who find problems using the tutorial I have made at:

http://www.howtoforge.com/apache2_to...jk_integration

Please post in here your questions and we will all try to solve them.

Fernando

falko 10th April 2006 09:52

You might have noticed that I did a little formatting on your Howto so that it fits into these guidelines: http://www.howtoforge.com/howto_formatting_guide :)

fernandoch 10th April 2006 10:03

Yes I have noticed,

I was supposed to do it today ;)

Thank you anyways,
Fernando

leorulez 2nd May 2006 23:06

problem with apache webserver and tomcat integration
 
Hi,

I followed the exact steps given by you in

http://www.howtoforge.com/apache2_to...jk_integration
trying to make tomcat and apache communicate.

However when I typed
http://host/jsp-examples, I got an Apache Tomcat error report, "HTTP status 404". I am not sure what I have done wrong. Any help on this would be appreciated.

My config is
Linux 3.2.3-53
Apache Web Server 2.0.46
Tomcat 4.1.29

Thanks
ambika

falko 3rd May 2006 15:33

Anything in your error logs?
Have you also tried http://host/jsp-examples/ (with a trailing slash)?

leorulez 4th May 2006 20:35

I tried with trailing slash, but still getting the same error. The mod_jk.log file is empty, mod_jk.log.1 has lines similar to this,

[Tue May 02 15:59:21 2006]worker1 host 0.020002


My workers.properties file is

workers.tomcat_home=/usr/local/tomcat/
workers.java_home=/usr/java/j2sdk1.4.2_06/
ps=/
worker.list=worker1
worker.default.port=8009
worker.default.host=hostname
worker.default.type=ajp13
worker.default.lbfactor=1

I replaced hostname with the real hostname.

devnet 11th May 2006 16:50

Actually, the examples are located http://localhost:8080/jsp-examples/ instead of http://localhost/jsp-examples/

There is a link to those examples on the front page of your default tomcat index http://localhost:8080/

So the how-to should be updated with this error fix. Not sure if it is because I used apache-tomcat-5.5.17.tar.gz versus apache-tomcat-5.5.16.tar.gz or not...but that's the fix.

fernandoch 26th May 2006 17:51

Hi leorulez,

What happens when you point your browser to:

http://localhost ??? Does your apache respond to the request?

And when you point it to:

http://localhost:8080 ??? What does it give you?

fernandoch 26th May 2006 17:56

Hi Devnet,

If this address http://localhost/jsp-examples/ is not working, it means your connection between apache 2 and tomcat 5 is not working.

If you point you browser to http://localhost:8080/ this means you are not using the mod_jk connection, but just the tomcat 5.

To make it work, no port numbers should be in the middle of your address. You should have the apache respond to http://localhost and tomcat to http://localhost/jsp-examples if you followed the manual. I havenīt tried it with apache-tomcat-5.5.17.tar.gz but I will do it as soon as I have some time.

leorulez 30th May 2006 20:27

Hi,

With http://host, I get the main web page that we have developed. so apache web server is working fine. With http://host:8080, I get the default tomcat servlet engine page. Hence even tomcat as a stand alone works fine. I tried http://host/jsp-examples, and got an Apache Tomcat error report, "HTTP status 404". Is there any other way to verify whether the apache web server and the tomcat servlet engine both communicate with one another?

Thanks


All times are GMT +2. The time now is 06:32.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.