Okay, been working the various suggestions that have been made so far, and
I have it now so that if I go to:

http://www.domain.com:8180

everything loads up as expected ...

But, if I go to just http://www.domain.com, it gives me an error of:

The requested URL /index.html was not found on this server.

Now, my pipeline currnelty looks like:

<map:pipeline>
  <map:match type="host" pattern="*domain.com*">
    <map:mount check-reload="yes" src="domain/sitemap.xmap" uri-prefix=""/>
  </map:match>


<!--
  <map:match pattern="domain">
    <map:redirect-to uri="domain/index.html"/>
  </map:match>

  <map:match pattern="domain/**">
    <map:mount uri-prefix="domain" check-reload="yes" src="domain/sitemap.xmap"/>
  </map:match>
-->
</map:pipeline>

And my domain/sitemap.xmap looks like:

<?xml version="1.0" encoding="UTF-8"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0";>
  <map:pipelines>
    <map:pipeline>
      <map:match pattern="">
        <map:redirect-to uri="index.html"/>
      </map:match>

      <map:match pattern="**.html">
        <map:read src="html/{1}.html"/>
      </map:match>

      <map:match pattern="css/**.css">
        <map:read src="css/{1}.css"/>
      </map:match>

      <map:match pattern="images/**">
        <map:read src="images/{1}"/>
      </map:match>
    </map:pipeline>
  </map:pipelines>
</map:sitemap>

with a du of the directories looking like:

4       domain/css
32      domain/html
12      domain/images
2       domain/xml
2       domain/xsl
56      domain


and my apache config file looking like:

<VirtualHost _server_ip_>
  ServerName www.domain.com
  ServerAlias domain.com

  ErrorLog /var/www/domain.com/www/error_log
  CustomLog /var/www/domain.com/www/access_log combined

  Alias /stats  /usr/local/stats/domain.com/www

  JkMount /       ajp13
</VirtualHost>

And, ajp13 is defined in workers.properties as:

workers.tomcat_home=/usr/local/jakarta-tomcat4.1.10
workers.java_home=/usr/local/jdk1.3.1
ps=/
worker.list=ajp12, ajp13

# Definition for Ajp13 worker
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13


Now, turning the JK Log level to debug, I'm seeing:

[Fri Oct 11 18:58:27 2002]  [jk_uri_worker_map.c (460)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Fri Oct 11 18:58:27 2002]  [jk_uri_worker_map.c (477)]: Attempting to map URI '/'
[Fri Oct 11 18:58:27 2002]  [jk_uri_worker_map.c (491)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found an exact match ajp13 -> /
[Fri Oct 11 18:58:27 2002]  [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13
[Fri Oct 11 18:58:27 2002]  [jk_worker.c (136)]: wc_get_worker_for_name, done  found a 
worker
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (1391)]: Into jk_worker_t::get_endpoint
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (1107)]: Into jk_endpoint_t::service
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done
[Fri Oct 11 18:58:27 2002]  [jk_connect.c (132)]: Into jk_open_socket
[Fri Oct 11 18:58:27 2002]  [jk_connect.c (139)]: jk_open_socket, try to connect 
socket = 7
[Fri Oct 11 18:58:27 2002]  [jk_connect.c (148)]: jk_open_socket, after connect ret = 0
[Fri Oct 11 18:58:27 2002]  [jk_connect.c (157)]: jk_open_socket, set TCP_NODELAY to on
[Fri Oct 11 18:58:27 2002]  [jk_connect.c (174)]: jk_open_socket, return, sd = 7
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (614)]: In 
jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 7
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (640)]: sending to ajp13 #457
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (882)]: ajp_send_request 2: request body 
to send 0 - request body to resend 0
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (727)]: received from ajp13 #154
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (483)]: ajp_unmarshal_response: status = 
302
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (488)]: ajp_unmarshal_response: Number of 
headers is = 4
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[0] 
[X-Cocoon-Version] = [2.0.3]
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[1] 
[Location] = [http://www.domain.com/index.html]
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[2] 
[Content-Type] = [text/html;charset=ISO-8859-1]
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[3] 
[Content-Language] = [en]
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (727)]: received from ajp13 #692
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (727)]: received from ajp13 #2
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (1369)]: Into jk_endpoint_t::done, 
recycling connection
[Fri Oct 11 18:58:27 2002]  [jk_uri_worker_map.c (460)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Fri Oct 11 18:58:27 2002]  [jk_uri_worker_map.c (477)]: Attempting to map URI 
'/index.html'
[Fri Oct 11 18:58:27 2002]  [jk_uri_worker_map.c (599)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match


Can anyone see a step I've missed here?  From what i can tell, the mod_jk
link is working, in so far as its going to the tomcat server and
translation http://www.domain.com ->
http://www.domain.com/html/index.html, bit it seems to be ignoring the
sitemap.xmap that tells it whihch file to then load up :(

Thoughts/ideas?




---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to