In my setup, I do not have nutch installed in the tomcat root, instead
it is in /search. IIRC, without doing some additional fiddling, both
apache and tomcat must agree on the path to the web application. In my
case, that means that both Apache and Tomcat must believe that the
webapp is in /search. For that kind of setup, I have the following in my
Apache config:

LoadModule      jk_module modules/mod_jk.so
JkWorkersFile   /etc/httpd/conf/workers.properties
JkLogFile       logs/mod_jk.log
JkLogLevel      error
JkMount /search ajp13
JkMount /search/* ajp13

note that both JkMount lines are necessary if you want Tomcat to see
requests for /search without the trailing slash.

The workers.properties has:
workers.tomcat_home=/usr/share/tomcat5
workers.java_home=/usr/java/default
ps=/
worker.list=ajp12, ajp13, jboss
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)server$(ps)libjvm.so
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr

Then, make sure that Tomcat really is listening on port 8009 on the
loopback interface (localhost).

 -Hal

monkeynuts84 wrote:
> Hal,
>     The error is from apache. It can't seem to find the jsp files. Is there
> something specific I need to do in the config file regarding the nutch jsp
> location?
>
> Thanks.
>
>
> Hal Finkel wrote:
>   
>> What kind of error page do you get: one from Tomcat or one from Apache?
>>
>>  -Hal
>>
>> monkeynuts84 wrote:
>>     
>>> Hi,
>>>    I'm having problems getting mod_jk to work. I've moved the html files
>>> to
>>> the apache webroot. When I set up mod_jk and start tomcat the site can't
>>> seem to find the search.jsp. Does anyone have a working example config
>>> for
>>> mod_jk that I can cross reference with mine?
>>>
>>> Thanks in advance.
>>>   
>>>       
>>
>>     
>
>   

Reply via email to