cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Lange <ralph.la...@abs.de>
Subject problem with wildcard and pipeline keys
Date Thu, 25 Aug 2005 14:31:26 GMT
Dear Cocoon Users!
My setup: cocon 2.1.5.1, tomcat 5.5.4,  jdk 1.5.0.
I experience the following problem: using the match pattern

      <map:match pattern="download/**.pdf">
      <map:act type="downloadAction">
          <map:parameter name="file" value="{1}"/>
      <map:read src="{1}.pdf" mime-type="application/pdf"/>
      </map:act>
        <map:generate src="xml/de/download/downloaderror.xml"/>
             <map:transform src="xsl/de/download/downloaderror.xsl"/>
             <map:serialize/>     
      </map:match>

where {1} is the path plus the filename, cocoon doesn't resolve the 
pipeline key on the map:read construct, instead it produces the 
errormessage:

org.apache.cocoon.ResourceNotFoundException: Error during resolving of 
the input stream: org.apache.excalibur.source.SourceNotFoundException: 
file:/opt/abs/serverFramework/application.efonds/.pdf doesn't exist.

The parameter is saved as the variable file -> the first time it works, 
but the second pipeline key resolves nothing.

Does anyone know why, or have the solution?

Yours sincereley, Ralph Lange

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message