I'm running Cocoon 2.0.4 on IBMJDK 1.3.1.

I've got Apache NameVirtualHosting, onto Tomcat 4.1.18, which is mapped to the same 
Cocoon instance.

My sitemap.xmap has been stripped down and I've entered the following host setup

   <map:selector logger="sitemap.selector.host" name="host" 
src="org.apache.cocoon.selection.HostSelector"/>
        <host name="poc1" value="poc1.mydomain.com"/>
        <host name="poc2" value="poc2.mydomain.com"/>
  </map:selectors>

In my Main Pipeline, I've got 

    <map:select type="host">
        <map:when test="poc1">
                <map:mount uri-prefix="" src="content/poc1.mydomain.com/sitemap.xmap" 
/>
        </map:when>
        <map:when test="poc2">
                <map:mount uri-prefix="" src="content/poc2.mydomain.com/sitemap.xmap" 
/>
        </map:when>
    </map:select>

But, nothing seems to be matching the hosts correctly...

Apache's NameVHosting fine, Tomcat's passing it on (I've tested content in the root of 
a context), but...I get this error in my Cocoon logs...

WARN    (2003-03-14) 14:58.10:198   [sitemap.selector.host] (/content/kevin.html) 
Ajp13Processor[8009][4]/NamedPatternsSelector: No configuration for expression 'poc1' 
-- failing.
WARN    (2003-03-14) 14:58.10:200   [sitemap.selector.host] (/content/kevin.html) 
Ajp13Processor[8009][4]/NamedPatternsSelector: No configuration for expression 'poc2' 
-- failing.

I guess I've got my HostSelector configured wrongly, but, I'm following this 
<http://wiki.cocoondev.org/Wiki.jsp?page=HostSelector> advice and getting nowhere...

Any suggestions?

Thanks

Kevin McDermott

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

Reply via email to