Hi Dan

Here you go:

<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>

Thanks again

Duncan

Daniel Curran wrote:
Could you post that section as well. It will be helpful in debugging this issue.

Dan

Duncan McLean wrote:
Daniel Curran wrote:
Have you defined your exceptions in your selectors section of components?

Duncan McLean wrote:
Hi

We have a root sitemap which (to me) seems to have a standard
handle-errors section:

<map:handle-errors>
<map:select type="exception">

<map:when test="not-found">
  <map:generate type="notifying"/>
  <map:transform src="stylesheets/system/exception2html.xslt"/>
  <map:serialize/>
</map:when>

<map:when test="invalid-continuation">
  <map:generate type="notifying"/>
  <map:transform src="stylesheets/system/exception2html.xslt"/>
  <map:serialize/>
</map:when>

<map:otherwise>
  <map:generate type="notifying"/>
  <map:transform src="stylesheets/system/exception2html.xslt"/>
  <map:serialize/>
</map:otherwise>

</map:select>
</map:handle-errors>

However, when a 404 error (or 500) is encountered, instead of getting the nice "pretty-printed" exception page, we just get a scree of error stack
trace on the screen.

Why could this be happening? Is there something I'm missing, or has
someone seen this before? (The xsl files seem to be reachable as it
complains if I rename any of the files mentioned above).

Thanks

Duncan




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Hi - thanks for responding - yes I have...

Duncan


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to