Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Trouble integrating Apache HTTP server with Tomcat

Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,

I am currently doing a project which requires me to integrate Apache HTTP server with Tomcat. I am using Apache HTTP server 2.2.3 and Apache Tomcat 6.
My Apache's path is "C:\Apache" whereas my Tomcat's path is "C:\Tomcat". I am trying to integrate them using mod_jk. I have downloaded a binary version of mod_jk ( and have put it into "C:\Apache\modules". From tutorials I found from the net, I have created a "" file and put it in "C:\Apache\conf".

My file looks like this:

# Define worker 'example'

# Set properties for worker 'example' (ajp13)


I have also edited my httpd.conf file by adding the following lines at the end of my file:

LoadModule jk_module modules/

<IfModule mod_jk.c>

JkWorkersFile conf/
JkLogFile logs/mod_jk.log
JkLogLevel error
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"

Alias /jsp-examples "C:/Tomcat/webapps/try_success/"

<Directory "C:/Tomcat/webapps/try_success/">
Options Indexes +FollowSymLinks
AllowOverride None
Allow from all

<Location /*/WEB-INF/*>
AllowOverride None
deny from all

JkMount /try_success/*.jsp example


"C:/Tomcat/webapps/try_success/" is the directory I used to develop my application. Inside /try_success directory I have a jsp file called "Hello.jsp" and a html file called "postform.html". After performing the steps above, I failed to load the jsp file through the browser but then I could load the html file.

I typed "http://localhost/try_success/Hello.jsp" in the address bar. It tried to open the page but in the end it showed an error message called "Service Temporarily Unavailable". But then when I typed in "http://localhost/try_success/postform.html", the html page loaded perfectly. I suspect I "JkMount"ed wrongly. What's the problem? Please provide some help. Thank you
    Bookmark Topic Watch Topic
  • New Topic