You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Carmona Perez, David" <DP...@fcc.es> on 2003/11/12 15:40:38 UTC

ResourceReader problem

Hi all,
 
I have a strange problem with the minimal sitemap shown below.  With Internet Explorer 6, I receive the following error:
 
            Internet Explorer cannot download t.pdf from localhost.
            Internet Explorer was not able to open this Internet site. The request site is either unavailable or cannot be found.  Please try again later.
 
when I enter the following URL:
 
http://localhost:8080/t.pdf (Cocoon is the root servlet)
 
With Mozilla 1.4 is OK.
 
I´m using Cocoon 2.1.2 under Tomcat 4.1.18.
It used to work the same sitemap under Cocoon 2.0.4.
Please, does anyone know the cause?
Maybe some HTTP header is sent incorrectly.
Log files show nothing.
 
##########################SITEMAP:
 
<?xml version="1.0" encoding="ISO-8859-1"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
      <!--############Componentes-->
      <!--Para mas informacion sobre cualquier componente, consultar su JavaDoc-->
      <map:components>
            <map:readers default="resource">
                  <map:reader logger="sitemap.reader.resource" name="resource"
                        pool-max="32" src="org.apache.cocoon.reading.ResourceReader"/>
            </map:readers>
            <map:matchers default="wildcard">
                  <map:matcher logger="sitemap.matcher.wildcard" name="wildcard"
                        src="org.apache.cocoon.matching.WildcardURIMatcher"/>
            </map:matchers>
            <map:pipes default="noncaching">
                  <map:pipe name="caching" src="org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline">
                  </map:pipe>
                  <map:pipe name="noncaching"
                        src="org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipeline">
                  </map:pipe>
            </map:pipes>
      </map:components>
      <!--############Pipelines-->
      <map:pipelines>
            <map:pipeline>
              <map:match pattern="*.pdf">
                 <map:read mime-type="application/pdf" src="c:/u/tmp/{1}.pdf"/>
              </map:match>
            </map:pipeline>
      </map:pipelines>
</map:sitemap>
 
 
--------
David