
9th April 2006, 18:46
|
|
Junior Member
|
|
Join Date: Apr 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
Last edited by fernandoch; 9th April 2006 at 18:53.
|

10th April 2006, 09:52
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
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
|

10th April 2006, 10:03
|
|
Junior Member
|
|
Join Date: Apr 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Yes I have noticed,
I was supposed to do it today
Thank you anyways,
Fernando
Last edited by fernandoch; 10th April 2006 at 10:17.
|

2nd May 2006, 23:06
|
|
Junior Member
|
|
Join Date: May 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

3rd May 2006, 15:33
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Anything in your error logs?
Have you also tried http://host/jsp-examples/ (with a trailing slash)?
|

4th May 2006, 20:35
|
|
Junior Member
|
|
Join Date: May 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

11th May 2006, 16:50
|
|
Junior Member
|
|
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

26th May 2006, 17:51
|
|
Junior Member
|
|
Join Date: Apr 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

26th May 2006, 17:56
|
|
Junior Member
|
|
Join Date: Apr 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

30th May 2006, 20:27
|
|
Junior Member
|
|
Join Date: May 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
Last edited by leorulez; 30th May 2006 at 20:34.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 19:01.
|
Recent comments
2 days 9 hours ago
2 days 18 hours ago
2 days 21 hours ago
2 days 22 hours ago
3 days 17 min ago
3 days 1 hour ago
3 days 3 hours ago
3 days 4 hours ago
3 days 20 hours ago
3 days 21 hours ago