Joakim, 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 <[email protected]> > Thank you! > > > 2013/10/1 Joakim Erdfelt <[email protected]> > >> Using a jetty context xml >> deployable<http://www.eclipse.org/jetty/documentation/current/configuring-specific-webapp-deployment.html> >> . >> >> You can then configure the error handler to not show stacktraces. >> >> <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" " >> http://www.eclipse.org/jetty/configure_9_0.dtd"> >> <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> >> </Call> >> </Get> >> </Configure> >> >> >> -- >> Joakim Erdfelt <[email protected]> >> webtide.com <http://www.webtide.com/> - intalio.com/jetty >> Expert advice, services and support from from the Jetty & CometD experts >> eclipse.org/jetty - cometd.org >> >> >> On Tue, Oct 1, 2013 at 6:21 AM, Mikhail Mazursky <[email protected]>wrote: >> >>> Joakim, >>> >>> sorry for my english. >>> >>> 2013/10/1 Joakim Erdfelt <[email protected]> >>> >>>> 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 >>> [email protected] >>> https://dev.eclipse.org/mailman/listinfo/jetty-users >>> >>> >> >> _______________________________________________ >> jetty-users mailing list >> [email protected] >> https://dev.eclipse.org/mailman/listinfo/jetty-users >> >> >
_______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
