{"action":"closed","issue":{"url":"https://api.github.com/repos/tomakehurst/wiremock/issues/882","repository_url":"https://api.github.com/repos/tomakehurst/wiremock","labels_url":"https://api.github.com/repos/tomakehurst/wiremock/issues/882/labels{/name}","comments_url":"https://api.github.com/repos/tomakehurst/wiremock/issues/882/comments","events_url":"https://api.github.com/repos/tomakehurst/wiremock/issues/882/events","html_url":"https://github.com/tomakehurst/wiremock/issues/882","id":298588469,"number":882,"title":"Class hierarchy issue with Servlet-API","user":{"login":"personal-ravi-gudla","id":35848295,"avatar_url":"https://avatars2.githubusercontent.com/u/35848295?v=4","gravatar_id":"","url":"https://api.github.com/users/personal-ravi-gudla","html_url":"https://github.com/personal-ravi-gudla","followers_url":"https://api.github.com/users/personal-ravi-gudla/followers","following_url":"https://api.github.com/users/personal-ravi-gudla/following{/other_user}","gists_url":"https://api.github.com/users/personal-ravi-gudla/gists{/gist_id}","starred_url":"https://api.github.com/users/personal-ravi-gudla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/personal-ravi-gudla/subscriptions","organizations_url":"https://api.github.com/users/personal-ravi-gudla/orgs","repos_url":"https://api.github.com/users/personal-ravi-gudla/repos","events_url":"https://api.github.com/users/personal-ravi-gudla/events{/privacy}","received_events_url":"https://api.github.com/users/personal-ravi-gudla/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-20T13:11:59Z","updated_at":"2018-02-20T13:14:49Z","closed_at":"2018-02-20T13:14:49Z","author_association":"NONE","body":"Hello All, I am planning to use WireMock in our project. Here is the issue I am facing.\r\n**Issue :**  In pom.xml, I have two dependencies added one for servlet-api and another one for wiremock.\r\nIt seems Wiremock 2.14.0 version is depending on Servlet 3.0 which is included in wiremock-standalone. jar itself. But due to other servlet-api dependency we have in our project that is taking priority in class loading and wiremock is faling because my project dependency has servlet-api 2.4. which s older version than what wiremock is expecting. It works if I manully push the wiremock jar to the top in class hierarchy. But it gets overriden when ever I do mvn build. \r\nHere is the exception I can see in logs:\r\n```\r\n18:39:23.873 [qtp20098454-18 - /test/abc] WARN  w.o.e.jetty.servlet.ServletHandler - Error for /test/abc\r\njava.lang.NoSuchMethodError: javax.servlet.http.HttpServletResponse.getHeader(Ljava/lang/String;)Ljava/lang/String;\r\n\tat wiremock.org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:323) ~[wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) ~[wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) [wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) [wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) [wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061) [wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110) [wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) [wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.server.Server.handle(Server.java:499) [wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311) [wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:258) [wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544) [wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) [wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) [wiremock-standalone-2.14.0.jar:na]\r\n\tat java.lang.Thread.run(Thread.java:722) [na:1.7.0_10]\r\n18:39:23.873 [qtp20098454-18 - /test/abc] DEBUG w.o.e.jetty.servlet.ServletHandler - Request(GET /test/abc)@86fa96\r\n18:39:23.876 [qtp20098454-18 - /test/abc] WARN  w.o.eclipse.jetty.server.HttpChannel - /test/abc\r\njava.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.isAsyncStarted()Z\r\n\tat wiremock.org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:684) ~[wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) ~[wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) ~[wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061) ~[wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110) ~[wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) ~[wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.server.Server.handle(Server.java:499) ~[wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311) ~[wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:258) [wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544) [wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) [wiremock-standalone-2.14.0.jar:na]\r\n\tat wiremock.org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) [wiremock-standalone-2.14.0.jar:na]\r\n\tat java.lang.Thread.run(Thread.java:722) [na:1.7.0_10]\r\n18:39:23.878 [qtp20098454-18 - /test/abc] DEBUG w.o.e.jetty.server.HttpConnection - wiremock.org.eclipse.jetty.server.HttpConnection$SendCallback@98ffc3[PROCESSING][i=ResponseInfo{HTTP/1.1 500 javax.servlet.http.HttpServletRequest.isAsyncStarted()Z,332,false},cb=wiremock.org.eclipse.jetty.server.HttpChannel$CommitCallback@bf7c56] generate: NEED_HEADER (null,[p=0,l=332,c=2048,r=332],true)@START\r\n18:39:23.878 [qtp20098454-18 \r\n\r\n```\r\n\r\n\r\n   "}}
{"actor":{"display_login":"tomakehurst"}}