cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Terence Kearns <teren...@isd.canberra.edu.au>
Subject sitemap: error handling -- can't select on 'not-found'
Date Fri, 26 Mar 2004 07:39:22 GMT
I can't seem to get my error handling to work. I tried handling 
"not-found" error, but it's not matching my not-found selector.
Here is the sitemap snippet:

<map:handle-errors>
<map:select type="exception">
   <map:when test="not-found">
     <map:generate type="notifying"/>
     <map:transform src="stylesheets/error/error2html.xsl">
       <map:parameter name="contextPath" value="{request:contextPath}"/>
       <map:parameter name="pageTitle" value="Resource not found"/>
     </map:transform>
     <map:serialize type="html" status-code="404"/>
   </map:when>
   <map:otherwise>
     <map:generate type="notifying"/>
     <map:transform src="stylesheets/error/error2html.xsl">
       <map:parameter name="contextPath" value="{request:contextPath}"/>
       <map:parameter name="pageTitle" value="General Error"/>
     </map:transform>
     <map:serialize type="html" status-code="500"/>
   </map:otherwise>
</map:select>
</map:handle-errors>

What I get instead is...

An Error Occurredorg.apache.cocoon.ProcessingExceptionFailed to execute 
pipeline.org.apache.cocoon.ProcessingException: Failed to execute 
pipeline.: org.apache.cocoon.ResourceNotFoundException: Resource not 
found.: org.apache.excalibur.source.SourceNotFoundException: 
file:/opt/local/jakarta-tomcat-4.1.27/webapps/cocoon/policydb/xsp/browseCategorysdvsd.xsp

doesn't exist.java.io.FileNotFoundException: 
/opt/local/jakarta-tomcat-4.1.27/webapps/cocoon/policydb/xsp/browseCategorysdvsd.xsp 
(No such file or directory)Original Exception: 
org.apache.cocoon.ResourceNotFoundException: Resource not found.: 
org.apache.excalibur.source.SourceNotFoundException: 
file:/opt/local/jakarta-tomcat-4.1.27/webapps/cocoon/policydb/xsp/browseCategorysdvsd.xsp

doesn't exist. at 
org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:429) 
at 
org.apache.cocoon.components.source.impl.SitemapSource.<init>(SitemapSource.java:259)

at 
org.apache.cocoon.components.source.impl.SitemapSourceFactory.getSource(SitemapSourceFactory.java:99)

at

...

Any assistance appreciated.

-- 
Terence Kearns
ph: +61 2 6201 5516
Enterprise Applications Developer
Enterprise Systems Support and Development
Information and Communications Technology (ICT) Services
University of Canberra, Australia - http://www.canberra.edu.au

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


Mime
View raw message