Still no joy... let me summarize..
I cant get the <map:handle-errors> to execute in my sub site map.
Yes I am using a sub site map. I commented out the handle-error blocks
in the main site map and now i get a different wrong error page.
The new wrong error page is the cocoon "Internal Server Error" page rather
that the usual
"An error occurred " page.
the main pipeline has a selector definition like this
...
<map:selector logger="sitemap.selector.exception" name="exception"
src="org.apache.cocoon.selection.ExceptionSelector">
<exception class="org.apache.cocoon.ResourceNotFoundException"
name="not-found"/>
<exception
class="org.apache.cocoon.components.flow.InvalidContinuationException"
name="invalid-continuation"/>
<!-- The statement below tells the selector to unroll as much
exceptions as possible -->
<exception class="java.lang.Throwable" unroll="true"/>
</map:selector>
...
So with no handel errors in the main sitemap I expect the handle errors in
the sub site map
to work (and reference the selector definition in the main sitemap)
The sub pipeline is listed below. It has two pipelines.
The first one <map:match pattern="*/site.xml"> calls
the 2nd one with a <cinclude>.
When the 2nd pipeline fails i would like it to return
a different xml file than the one requested. Say for now
just return the "welcome.xml" file which I know exists.
This should be done by the <map:handle-errors> in the 2nd
pipeline?? Sounds nice in thory!!! But in practice i cant make it work!!
Thanks again..
Dave
<map:pipelines>
(first pipeline)
<map:pipeline>
<!--*****************************************-->
<map:match pattern="*/site.xml">
<!--*****************************************-->
<map:aggregate element="root">
<!--map:part src="cocoon:/request"/-->
<map:part src="cocoon:/session/appState"/>
<map:part src="{1}/siteconfig/session.xml"/>
<map:part src="{1}/siteconfig/root.xml"/>
</map:aggregate>
<map:transform src="_common/_xsl/displayarea.xsl"/>
<map:transform src="_common/_xsl/widget.xsl"/>
<map:transform src="_common/_xsl/dinclude.xsl"/>
<map:transform type="cinclude"/>
<map:transform src="_common/_xsl/einclude.xsl"/>
<map:transform src="_common/_xsl/main.xsl"/>
<map:transform src="_common/_xsl/indentxhtml.xsl"/>
<map:serialize type="xhtml"/>
</map:match>
(2nd pipeline....called by cinclude in above pipeline)
<map:pipeline>
<!--*****************************************-->
<map:match pattern="*/*/*.xml">
<!--*****************************************-->
<map:aggregate element="included" >
<!--map:part src="cocoon:/request"/-->
<map:part src="{1}/siteconfig/session.xml"/>
<map:part src="cocoon:/session/appState"/>
<map:part src="{1}/{2}/{3}.xml"/> **(when this is not
found...)***???
</map:aggregate>
<map:transform src="_common/_xsl/displayarea.xsl"/>
<map:transform src="_common/_xsl/widget.xsl"/>
<map:transform src="_common/_xsl/dinclude.xsl"/>
<map:transform src="_common/_xsl/stripper.xsl"/>
<map:transform type="cinclude"/>
<map:serialize type="xml" />
</map:match>
<map:handle-errors> ***(this should execute)**???
<map:select type="exception">
<map:when test="not-found">
<map:generate src="doingatkins.com/repository/welcome.xml"/>
<!--map:generate src="{1}/xhtml/filenotfound.xhtml"/-->
<map:serialize type="xml"/>
</map:when>
</map:select>
</map:handle-errors>
</map:pipeline>
</map:pipelines>
</map:sitemap>
just to be complete the error follows. The page in the exception string is
the original missing (cautionv.xml) page and not one from the handel-errors
map generate so i think the handel-errors is not executing.
Any ideas???
Description: org.apache.cocoon.ProcessingException: Failed to execute
pipeline.: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: org.apache.cocoon.ProcessingException: Failed to
execute pipeline.: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: java.lang.RuntimeException:
org.apache.cocoon.ResourceNotFoundException: Resource not found.:
org.apache.excalibur.source.SourceNotFoundException:
file:/C:/eclipse/workspace/MetaWorks/sites/doingatkins.com/repository/cautio
nv.xml doesn't exist.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]