Vital stats:

Apache Tomcat/7.0.22    1.6.0_20-b20    Sun Microsystems Inc.   Linux
        2.6.34.7-56.40.amzn1.i686

I have a CAS server deployed on this instance.

I am trying to catch errors within the server (e.g., DB down) so I can
display friendly page to user & log error.

In the web.xml for the CAS server I have (I added error-page for
java.lang.Exception, ohters were already there)

<error-page>
                
<exception-type>org.springframework.context.ApplicationContextException</exception-type>
                <location>/WEB-INF/view/jsp/brokenContext.jsp</location>
        </error-page>

        <error-page>
                <exception-type>java.lang.Exception</exception-type>
                <location>/WEB-INF/view/jsp/exception.jsp</location>
        </error-page>

        <error-page>
        <error-code>500</error-code>
                <location>/WEB-INF/view/jsp/errors.jsp</location>
        </error-page>

        <error-page>
                <error-code>404</error-code>
                <location>/</location>
        </error-page>

    <error-page>
        <error-code>403</error-code>
        <location>/403.html</location>
    </error-page>

Bu when I trigger an error (i.e., stop DB) I am seeing the default
Tomcat error page:

HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
org.springframework.webflow.execution.ActionExecutionException:
Exception thrown executing [AnnotatedAction@17b2b99 targetAction =
[EvaluateAction@16b653d expression =
authenticationViaFormAction.submit(flowRequestContext,
flowScope.credentials, messageContext), resultExpression = [null]],
attributes = map[[empty]]] in state 'realSubmit' of flow 'login' --
action execution attributes were 'map[[empty]]'
. . .

I'm a newbie to Tomcat & am not sure where to start looking.

--
Jonathan Rosenberg
Founder & Executive Director
Tabby's Place, a Cat Sanctuary
http://www.tabbysplace.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to