Cannot disable Jetty Stack traces

Description

I'm using Karaf 2.2.2 and with Pax Web 1.0.4. My application includes several WAB bundles.

When the OSGI container is starting up, and you attempt access the application too soon, you get a Jetty 500 error page with a ugly stack trace. Then if you try again after everything is started it works fine. I really don't want customers to see that stack trace while the application is loading. Is it possible to disable Jetty stack traces?

In order to get around this temporarily hacked the code HttpServiceContext to the following:

ErrorPageErrorHandler errorHandler = new ErrorPageErrorHandler();
errorHandler.setShowStacks(false);
setErrorHandler( errorHandler );

This works, but it would be nice if there was a cleaner way.

Environment

None

Status

Assignee

Jean-Baptiste Onofre

Reporter

Jeremy Erdmann

Labels

None

Components

Fix versions

Priority

Major
Configure