Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] NoSuchMethodError: javax.servlet.http.HttpServletRequest.isAsyncSupported()Z

hello again,

I'm getting this error

java.lang.NoSuchMethodError:
javax.servlet.http.HttpServletRequest.isAsyncSupported()Z
    at org.eclipse.jetty.server.handler.ResourceHandler.handle(ResourceHandler.java:509)

There is this line

https://github.com/eclipse/jetty.project/blob/master/jetty-server/src/main/java/org/eclipse/jetty/server/handler/ResourceHandler.java#L509

At that line you see if (request.isAsyncSupported() check on "request"
argument typed as HttpServletRequest which, in servlet-api-3.1.jar,
does not have this method "isAsyncSupported"

The actual argument is of type Request, and does have the method, but
apparently the java is not happy. What do I do to make it happy?

Thanks.


Back to the top