Skip to main content

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

ServletRequest, the HttpServletRequest parent interface does appear to have this method. 

https://github.com/eclipse/jetty.project/blob/master/jetty-server/src/main/java/org/eclipse/jetty/server/Request.java#L1476 implements it. 

Where did you source your servlet 3.1 jar from?


On Thu, Feb 27, 2014 at 11:51 AM, Makc <makc.the.great@xxxxxxxxx> wrote:
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.
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top