Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th April 2006, 18:46
fernandoch fernandoch is offline
Junior Member
 
Join Date: Apr 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up 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.
Reply With Quote
Sponsored Links
  #2  
Old 10th April 2006, 09:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

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
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 10th April 2006, 10:03
fernandoch fernandoch is offline
Junior Member
 
Join Date: Apr 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #4  
Old 2nd May 2006, 23:06
leorulez leorulez is offline
Junior Member
 
Join Date: May 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
  #5  
Old 3rd May 2006, 15:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

Anything in your error logs?
Have you also tried http://host/jsp-examples/ (with a trailing slash)?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 4th May 2006, 20:35
leorulez leorulez is offline
Junior Member
 
Join Date: May 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #7  
Old 11th May 2006, 16:50
devnet devnet is offline
Junior Member
 
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #8  
Old 26th May 2006, 17:51
fernandoch fernandoch is offline
Junior Member
 
Join Date: Apr 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?
Reply With Quote
  #9  
Old 26th May 2006, 17:56
fernandoch fernandoch is offline
Junior Member
 
Join Date: Apr 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #10  
Old 30th May 2006, 20:27
leorulez leorulez is offline
Junior Member
 
Join Date: May 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

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.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How would I upgrade php, mysql, and apache for debian phantomk Installation/Configuration 10 4th June 2007 18:01
Hell of asp debian apache ColdDoT Installation/Configuration 2 15th March 2006 14:15
Apache and Tomcat problem! Urgent maroonworks Server Operation 3 24th February 2006 15:14
asp and asp.net on apache debian ColdDoT Installation/Configuration 9 12th February 2006 22:17
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 14:42


All times are GMT +2. The time now is 20:49.


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