Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache to tomcat redirect

Status
Not open for further replies.

rbeech2303

IS-IT--Management
Jul 3, 2008
3
GB
I've been trying to get this working and encountering problems
I've worked out how to set up the mod_jk.conf file, the workers.properties, amendment of server.xml and httpd.conf
Tomcat appears okay but when I make a change to httpd.conf apache refuses to restart and doesnt give anything useful in the logs

My first port of call to make progress is to try and load the mod_jk module. I'm running apache 2.2 on windows vista (and tried xp) and have added this to httpd.conf
LoadModule jk_module modules/mod_jk.so

I've also tried it with mod_jk.dll but it fails with both
Ideally I'd like to add the include line to pick up the mod_jk.conf file but cant see the point at the moment if I cant get the mod_jk module to load

Can anyone please help ?
 
Thanks for the response, I presume you're talking about the apache log in C:\Program Files\Apache Software Foundation\Apache2.2\logs\error.log
What I've done is comment out LoadModule, started apache and it starts fine, this puts something in the log file
When I uncomment LoadModule and restart it says it cant start but doesnt put anything in the log:
[Thu Jul 03 20:05:21 2008] [notice] Apache/2.2.9 (Win32) configured -- resuming normal operations
[Thu Jul 03 20:05:21 2008] [notice] Server built: Jun 13 2008 04:04:59
[Thu Jul 03 20:05:21 2008] [notice] Parent: Created child process 3808
[Thu Jul 03 20:05:21 2008] [notice] Child 3808: Child process is running
[Thu Jul 03 20:05:21 2008] [notice] Child 3808: Acquired the start mutex.
[Thu Jul 03 20:05:21 2008] [notice] Child 3808: Starting 64 worker threads.
[Thu Jul 03 20:05:21 2008] [notice] Child 3808: Starting thread to listen on port 80.
[Thu Jul 03 20:05:45 2008] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Thu Jul 03 20:05:45 2008] [notice] Child 3808: Exit event signaled. Child process is ending.
[Thu Jul 03 20:05:46 2008] [notice] Child 3808: Released the start mutex
[Thu Jul 03 20:05:47 2008] [notice] Child 3808: All worker threads have exited.
[Thu Jul 03 20:05:47 2008] [notice] Child 3808: Child process is exiting
[Thu Jul 03 20:05:47 2008] [notice] Parent: Child process exited successfully.

Should I be looking elsewhere or setting the log level different ?
And I'm not sure now whether I should be using mod_jk or mod_jk2, any suggestions ?
Thanks
 
Yes done that, have put this in httpd.conf

LoadModule jk_module "C:\Program Files\Apache Software Foundation\Apache2.2\modules\mod_jk.dll"
#LoadModule jk_module "C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_jk.dll"

Tried it with \ and / separator and file definitely exists

Do you have a sample httpd.conf, workers.properties, server.xml mod_jk.conf etc and best versions to use ?

Thanks
Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top