I assume this is CentOS 4 / Apache 2.0 then?
The mod_jk config utilizes the mod_jk default worker of "ajp13" and
connects to the default Tomcat port of 8009. That is why the mapping
configs point to "ajp13". The reason I went this route was an effort to
keep things simple.
So, I did some googling and I came across this bit of code where the
error you mention is displayed:
http://mail-archives.apache.org/mod_mbox/tomcat-dev/200411.mbox/%3C200411300822...@minotaur.apache.org%3E
Looks like it's triggered by a NULL worker, so perhaps setting up the
workers file may be the answer here. I don't know why the system you're
working on is different then other systems. Perhaps something about
cPanel on CentOS 4 negates the default ajp13 worker or something along
those lines?
If I were you, I'd attempt one of the following:
1) Add a workers file and attempt to work out whatever errors are thrown
(maybe allow me to assist you by telling me what errors you're getting?)
2) Toss out mod_jk and attempt a mod_proxy connection.
Either one should get you there!
Sean Corfield has repeatedly and effectively convinced me of the
simplicity of mod_proxy, and making mod_proxy the default connection
method is on my to do list, but it involves some heavy scripting and I
just haven't gotten around to it yet. I admit I haven't prioritised it
yet either since mod_jk works fine in most situations.
Warm Regards,
Jordan Michaels
On 05/23/2012 03:08 PM, Peter Boughton wrote:
> Thanks Jordan,
>
> Just noticed I forgot to give my Apache version earlier, which is 2.0 -
> I tried the -M and it didn't work, since it looks like it's a 2.2 option.
>
> Looking at the available options, there's "httpd -l" which gives
> "Compiled in modules" - I'm not sure if mod_jk would be expected in that
> list, but it's not there.
>
> Doing "httpd -G | grep Jk" brings up a bunch of related directives,
> which suggests the module is being loaded?
>
> I don't remember for sure, but I think I manually added the "LoadModule
> jk_module mod_jk.so" line to httpd.conf - if I comment out that line
> then the above -G command returns nothing.
>
>
> Something I realised earlier is that there's no setting to point Apache
> at Tomcat - there should be a JkWorkersFile somewhere?
> (I did try adding that earlier, but got an error so removed it again.)
>
>
>
> Thanks,
>
> Peter
>
>
>
> On 23 May 2012 20:18, Jordan Michaels <
jor...@viviotech.net
> <mailto:
jor...@viviotech.net>> wrote:
>
> Hey Peter,
>
> First thing I'd check is to make sure that mod_jk is getting loaded
> alright. If you didn't have the mod_jk.conf file it might not be
> getting loaded.
>
> You can check it with the following command:
>
> # httpd -M
>
> This will give you a list of apache modules that are currently
> loaded in Apache. Hopefully mod_jk will be among them.
>
> Warm Regards,
> Jordan Michaels
>
>
> On 05/23/2012 10:09 AM, Peter Boughton wrote:
>
> I recompiled Apache to add a module, forgetting it would disconnect
> mod_jk in the process.
>
> So I tried running the Railo installer as the simplest way to fix
> things, but when the installer completes and tries to restart
> apache it
> results in:
>
> /etc/rc.d/init.d/httpd restart
> Syntax error on line 2390 of
> /usr/local/apache/conf/httpd.__conf:
> JkMount can not have a path when defined in a location
>
>
> Line 2390 is the first line of JkMounts:
>
> JkMount /*.cfm ajp13
>
>
> The server is running cPanel, so probably something to do with
> the wacky
> configs cPanel uses, but it's too hot and my brain is fried, so
> I can't
> think straight. :(
>
>
> Closest thing I found was this message from Jordan:
>
http://groups.google.com/__group/railo/msg/__0e27392bb43b8e45