Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] How to prevent Jetty from outputting stacktraces?


one more question: how to do that in Jetty-inside-OSGi deployment? There is no context.xml deployable. My app registers OSGi service to publish it's HTTP service.

2013/10/1 Mikhail Mazursky <ash2kk@xxxxxxxxx>
Thank you!

2013/10/1 Joakim Erdfelt <joakim@xxxxxxxxxxx>
Using a jetty context xml deployable.

You can then configure the error handler to not show stacktraces.

<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "">
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
  <Set name="contextPath">/test</Set>
  <Set name="war"><Property name="jetty.webapps" default="."/>/test.war</Set>
  <Get name="errorHandler">
    <Call name="setShowStacks">   <!-- Here -->
      <Arg type="boolean">false</Arg>  

Joakim Erdfelt <joakim@xxxxxxxxxxx>
Expert advice, services and support from from the Jetty & CometD experts

On Tue, Oct 1, 2013 at 6:21 AM, Mikhail Mazursky <ash2kk@xxxxxxxxx> wrote:

sorry for my english.

2013/10/1 Joakim Erdfelt <joakim@xxxxxxxxxxx>
Not clear what you are asking.

Are you wanting to suppress stack traces in your log files?
Are you wanting to not show stack traces in your error output to browsers?
That's what I want.
Are you wanting to customize your error output to browsers?

jetty-users mailing list

jetty-users mailing list

Back to the top