cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carmona Perez, David" <DPerez...@fcc.es>
Subject RE: Can't display an image
Date Wed, 30 Apr 2003 15:21:01 GMT
The problem seems due to the fact it doesn't find a selector.
 
What I usually do when having a problem like this is to place a breakpoint where it fails
and debug.
 
David
 
-----Mensaje original-----
De: Alex Scott [mailto:alex.scott@nexusalpha.com]
Enviado el: miƩrcoles, 30 de abril de 2003 17:01
Para: cocoon-users@xml.apache.org
Asunto: Can't display an image
 
 Dear list - A newbie question I'm afraid:
 
I am trying to display a jpeg image in the browser via cocoon. The browser is just displaying
the broken image symbol?
 
root sitemap snippet:
 
  <map:readers default="resource">
    <map:reader logger="sitemap.reader.resource" name="resource" pool-max="32" src="org.apache.cocoon.reading.ResourceReader"/>
    <map:reader name="jsp" src="org.apache.cocoon.reading.JSPReader"/>
  </map:readers>
 
Local sitemap snippet:
      
In Pipeline:

      <map:match pattern="**.jpg">
       <map:read mime-type="image/jpg" src="{1}.jpg"/>
      </map:match>
 
 
In the access.log I get:
 
DEBUG   (2003-04-30) 15:36.59:899   [access] (/cocoon/alex/ws/images/paint/match/12.jpg) Thread-92/AbstractEnvironment:
Set the URI Prefix (OLD=alex/, NEW=)
DEBUG   (2003-04-30) 15:36.59:899   [access] (/cocoon/alex/ws/images/paint/match/12.jpg) Thread-92/AbstractEnvironment:
Reset context to file:/C:/Program Files/Apache Group/Tomcat 4.1/webapps/cocoon/
DEBUG   (2003-04-30) 15:36.59:909   [access] (/cocoon/alex/ws/images/paint/match/12.jpg) Thread-92/AbstractEnvironment:
Set the URI Prefix (OLD=, NEW=)
DEBUG   (2003-04-30) 15:36.59:909   [access] (/cocoon/alex/ws/images/paint/match/12.jpg) Thread-92/AbstractEnvironment:
Reset context to file:/C:/Program Files/Apache Group/Tomcat 4.1/webapps/cocoon/
ERROR   (2003-04-30) 15:36.59:909   [access] (/cocoon/alex/ws/images/paint/match/12.jpg) Thread-92/CocoonServlet:
Problem with Cocoon servlet
org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector
could not find the component for hint []
 

 

Mime
View raw message