Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] problem setting custom errorHandler

I am trying to set a custom errorHandler for my web app, but am getting a noSuchMethod Exception on WebAppContext:

java.lang.NoSuchMethodException: class org.eclipse.jetty.webapp.WebAppContext.setErrorHandler(class biocode.fims.rest.FimsErrorHandler)

I'm using jetty 9. My jetty-env.xml looks like:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
 
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
    <Set name="errorHandler">
        <New class="biocode.fims.rest.FimsErrorHandler"/>
    </Set>
</Configure>

When I look at http://download.eclipse.org/jetty/9.3.8.v20160314/apidocs/org/eclipse/jetty/webapp/WebAppContext.html, it seems that the WebAppContext should have a setErrorHandler method

Back to the top