• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Apache Tomcat not connecting

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

I have set up a new server to run Apache and Tomcat. I have done this before on other servers but this time I'm stumped. Apache reports it can't find my foo directory. The problem is Apache does not tell me why it can't find foo.

I have mod_jk.so in the modules directory.

In httpd.conf I have:

LoadModule jk_module modules/mod_jk.so

JkWorkersFile /usr/local/apache2/conf/workers.properties

JkMount /foo/* worker1


My workers.properties file has:


qbash-2.05a# pico# Define 1 real worker using ajp13
worker.list=worker1

# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8007
#worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300



 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please post the exact error message you are seeing and also more details about what you are doing that's generating the error? Any specific URL you are accessing? If yes, please post the exact URL.
 
Saloon Keeper
Posts: 27762
196
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
You are probably getting a "404 Not Found" error page. The 404 page for Apache is visually quite different from the 404 page for Tomcat, so make sure that it's really Apache not resolving to Tomcat rather than Tomcat not finding the proper resource.

Just to be pedantic, "/foo" is not a "directory". It's a URL context component.

I haven't worked with mod_jk in years (I'm using mod_proxy), so I can't say without doing some research what's the matter with your pipeline definition, but a superficial reading would seem to indicate that you're routing all "/foo" requests to Tomcat without specifying a context within Tomcat, thus no mapping from "/foo" to a specific Tomcat-hosted web application.
 
reply
    Bookmark Topic Watch Topic
  • New Topic