• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Apache and Tomcat connection not working. Please help!

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

We have a configuration where the web server is Apache and JSP is served by Tomcat.
Apache used to forward JSP requests to Tomcat via mod_jk / ajp13 connector.
It was all working fine when both Apache and Tomcat were executing as "root"

Due to some security considerations APache / Tomcat now executes as non root.
Now all of a sudden the configuration does not work.
JSP pages are displayed as plain code .

I could figure out that APache and Tomcat are both running correctly.ok
Apache is showing the static html pages.
No specific error messages in the log files either.
But for some reason apache is not communcating with Tomcat.

What could be the issue? Or any pointers on how to investigate what is wrong?

Thanks in advance
 
Saloon Keeper
Posts: 28320
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Apache must be started as root, but best practices are that it should run as non-root. That capability is built into apache.

Tomcat should not run as root. As long as the default connector ports are used, that is not a problem.

I haven't been keeping track (I use mod_proxy as my connector), but my understanding is that mod_jk3 was deprecated because they were back-porting its capabilities into mod_jk2 about as fast as they were developed, while mod_jk3 never got reliably functional. So you may be having problems related to that.
 
Beauty is in the eye of the tiny ad.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic