I ran the Tomcat installer from Layer1 as well, and apache was wouldn't start for me either. After reading this post (and a couple of others), I uncommented that line as mentioned above and I also had to uncomment the &AddModule mod_jk.c& line to get apache to start again. Then I enabled one of my domain names with JSP from the WHM and loaded a simple .jsp file to test it... and it works.
HOWEVER, I have a customer trying to use servlets, and they are apparently not working. I enabled his domain for use with JSP, and in looking at the httpd.conf file here is a sample of his virutal host section (notice toward the bottom):
--------------------------------------------------------------------
&VirtualHost 000.000.000.000&
ServerAdmin
[email protected]
DocumentRoot /home/username/public_html
BytesLog domlogs/domain.com-bytes_log
User username
Group groupname
ServerName www.domain.com
CustomLog domlogs/domain.com combined
ScriptAlias /cgi-bin/ /home/username/public_html/cgi-bin/
&IfModule mod_jk.c&
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /servlets/* ajp13
&/IfModule&
&/VirtualHost&
-----------------------------------------------------------------------
Now, if you comment out the lines in the httpd.conf file that shows this:
# LoadModule jk_module libexec/mod_jk.so
#AddModule mod_jk.c
... then is that why his servlets are working?
Why doesn't apache start with the AddModule mod_jk.c in there? Can anyone help me get this working?