LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-23-2014, 05:07 PM   #1
seamore
Member
 
Registered: Sep 2009
Posts: 83

Rep: Reputation: 1
Apache/Tomcat disconnect


I had Apache and tomcat working together fine on a server I was configuring on my home network.

When I took the server to a co-location site to replace the server I had there I lost the connection. Apache can't find content via the worker.

It must be a network configuration thing but where?
 
Old 08-23-2014, 05:53 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
What do the logs say?
 
Old 08-23-2014, 06:08 PM   #3
seamore
Member
 
Registered: Sep 2009
Posts: 83

Original Poster
Rep: Reputation: 1
From apache error log when trying to access a jsp on tomcat via apache:


[Sat Aug 23 16:04:29.120861 2014] [jk:warn] [pid 1256:tid 3070428928] No JkLogFile defined in httpd.conf. Using default /usr/local/apache2/logs/mod_jk.log
[Sat Aug 23 16:04:29.124758 2014] [jk:warn] [pid 1256:tid 3070428928] No JkShmFile defined in httpd.conf. Using default /usr/local/apache2/logs/jk-runtime-status
[Sat Aug 23 16:04:29.143353 2014] [jk:warn] [pid 1257:tid 3070428928] No JkLogFile defined in httpd.conf. Using default /usr/local/apache2/logs/mod_jk.log
[Sat Aug 23 16:04:29.143729 2014] [jk:warn] [pid 1257:tid 3070428928] No JkShmFile defined in httpd.conf. Using default /usr/local/apache2/logs/jk-runtime-status
[Sat Aug 23 16:04:29.151669 2014] [mpm_worker:notice] [pid 1257:tid 3070428928] AH00292: Apache/2.4.7 (Unix) mod_jk/1.2.40 configured -- resuming normal operations
[Sat Aug 23 16:04:29.151722 2014] [core:notice] [pid 1257:tid 3070428928] AH00094: Command line: '/usr/local/apache2/bin/httpd'
 
Old 08-23-2014, 08:01 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
grep -i jk httpd.conf
says what?
 
Old 08-23-2014, 08:24 PM   #5
seamore
Member
 
Registered: Sep 2009
Posts: 83

Original Poster
Rep: Reputation: 1
grep -i jk httpd.conf

LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
JkWorkersFile /usr/local/apache2/conf/workers.properties
JkMount /mld/* worker1
JkMount /ngs worker1
JkMount /ngs/* worker1
JkMount /twilight worker1
JkMount /twilight/* worker1
 
Old 08-24-2014, 08:27 AM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by seamore View Post
Code:
JkMount /mld/* worker1
JkMount /ngs worker1
JkMount /ngs/* worker1
JkMount /twilight worker1
JkMount /twilight/* worker1
any of these remote hosts/mounts?

What apache and tomcat versions?
 
Old 08-24-2014, 09:28 AM   #7
seamore
Member
 
Registered: Sep 2009
Posts: 83

Original Poster
Rep: Reputation: 1
Apache/2.4.7

apache-tomcat-7.0.50

No remote hosts/mounts, all local
 
Old 08-24-2014, 11:50 AM   #8
seamore
Member
 
Registered: Sep 2009
Posts: 83

Original Poster
Rep: Reputation: 1
I turn mod_jk logging to debug. After trying to access a jsp from tomcat via apache I got this on the mod_jk log:

[Sun Aug 24 09:40:49 2014] [4052:3050306368] [debug] jk_translate::mod_jk.c (3623): missing uri map for reportscores.com:/twilight/index.jsp
[Sun Aug 24 09:40:49 2014] [4052:3050306368] [debug] jk_map_to_storage::mod_jk.c (3791): missing uri map for reportscores.com:/twilight/index.jsp

I have virtual hosts and set "JkMountCopy On" on httpd_conf
html for the virtual hosts home page is coming thru
 
Old 08-24-2014, 01:10 PM   #9
seamore
Member
 
Registered: Sep 2009
Posts: 83

Original Poster
Rep: Reputation: 1
Problem solved, I put the JKmounts in the virtual hosts
 
Old 08-24-2014, 08:04 PM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Glad it worked out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Tomcat Apache on Apache Web Server? carlosinfl Linux - Server 6 04-27-2012 05:12 AM
Session replication using apache+mod_jk+tomcat(5.5.28-veriosn of tomcat) sreejithp Linux - Server 1 12-24-2010 06:46 AM
apache-tomcat and jakarta-tomcat shifter Programming 1 07-28-2007 10:36 PM
Why use Apache with Tomcat rather than just Tomcat itself? davee Linux - Software 1 08-21-2003 09:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:58 PM.

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