NoSuchMethodException when deploying custom handler

Solution Verified - Updated -

Issue

  • We see an exception like the following when trying to deploy a custom Undertow request handler:
java.lang.NoSuchMethodException: com.CustomHandler.<init>(io.undertow.server.HttpHandler)
    at java.lang.Class.getConstructor0(Class.java:3082)
    at java.lang.Class.getConstructor(Class.java:1825)
    at org.wildfly.extension.undertow.deployment.ConfiguredHandlerWrapper.wrap(ConfiguredHandlerWrapper.java:55)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.