2
votes

I am using Jetty server with embedded web app. However whenever I hit any resource which is not present in It serves a default page which shows a message "Powered by Jetty". This page is being served from DefaultHandler class of org.eclipse.jetty.server.handler and from handle methos implementation. I want write a custom handler for this however current while trying to register custom Handler in jetty.xml file, I am getting syntax exception and server not getting started.

Can anybody please help on this.

Thanks in advance!

1

1 Answers

0
votes

I was able to resolve this issue by doing some tweaks along with changes mentioned in Deactivate Jetty's default 404 error handler.

Thank you.