You should add a log4j email appender to cas...we use something like
this on our website right now and it works great...you should
definitely look at the configuration settings since your needs may
vary from ours. Using log4j this way won't tie you to using anything
specific for your error page.

#Enable email appender
log4j.appender.email=org.apache.log4j.net.SMTPAppender
log4j.appender.email.SMTPHost=smtp.gmail.com
log4j.appender.email.SMTPDebug=false
log4j.appender.email.bufferSize=1
[email protected]
[email protected]
log4j.appender.email.subject=CAS Error
log4j.appender.email.threshold=ERROR
log4j.appender.email.layout=org.apache.log4j.PatternLayout
log4j.appender.email.layout.ConversionPattern=[%p] %d{ISO8601}%n%n%c:%L%n%n%m%n

Curtis


On Mon, Oct 19, 2009 at 4:30 PM, Kim Cary <[email protected]> wrote:
> All,
>
> Wondering what you are using for your custom error pages on tomcat with your
> CAS server. Ideally, I'd like the page to email me the error. If you have
> something like that or even something simpler you use and like, I'd be
> interested.
>
> Right now I'm looking at this in web.xml
> ...
>     <error-page>
>         <error-code>500</error-code>
>         <location>/server_error.html</location>
>     </error-page>
>     <error-page>
>         <error-code>404</error-code>
>         <location>/file_not_found.html</location>
>     </error-page>
> </web-app>
> but those could easily be jsp pages, I guess.
>
> What are you folks doing for this? I assume most of you are trapping the
> ugly 500 errors, etc.
>
> Kim
>
> --
> You are currently subscribed to [email protected] as:
> [email protected]
> To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-user



-- 
Curtis Garman
Web Programmer
Heartland Community College

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to