title: Grails project - Servlet call - ClassNotFoundException: javax.servlet.AsyncContext
body: <p>I am using</p>
  
  <ul>
  <li>intellij idea ultimate 12..4</li>
  <li>grails 2.2.0 , </li>
  <li>grails.servlet.version = "2.5" in BuildConfig.groovy file</li>
  </ul>
  
  <p>and implemented simple servlet post request. Using RESTClient for post request i found these scenariol</p>
  
  <p>Scenario:</p>
  
  <ul>
  <li><p>When i use locally  it works fine. URL:  localhost:9090/testProject/api/testReport</p></li>
  <li><p>but when i deploy it in local server follwing error messages are shown URL:192.168.1.10:9090/testProject/api/testReport  </p></li>
  </ul>
  
  <p>local server configuration is as localhost has....  </p>
  
  <pre><code>code:   
  ERROR errors.GrailsExceptionResolver  - ClassNotFoundException occurred when processing request: [POST] /testProject/api/testReport
          javax.servlet.AsyncContext. Stacktrace follows:
          java.lang.ClassNotFoundException: javax.servlet.AsyncContext
                  at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
                  at java.lang.Class.getDeclaredMethods(Class.java:1808)
                  at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
                  at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
                  at org.grails.jaxrs.support.ConverterUtils.jsonToMap(ConverterUtils.groovy:94)
                  at org.grails.jaxrs.support.DomainObjectReaderSupport.readFromJson(DomainObjectReaderSupport.groovy:124)
                  at org.grails.jaxrs.support.DomainObjectReaderSupport.readFrom(DomainObjectReaderSupport.groovy:93)
                  at com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest.java:474)
                  at com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$EntityInjectable.getValue(EntityParamDispatchProvider.java:123)
                  at com.sun.jersey.server.impl.inject.InjectableValuesProvider.getInjectableValues(InjectableValuesProvider.java:46)
                  at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$EntityParamInInvoker.getParams(AbstractResourceMethodDispatchProvider.java:153)
                  at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:183)
                  at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
                  at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
                  at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
                  at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
                  at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
                  at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
                  at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
                  at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
                  at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
                  at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
                  at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
                  at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)
                  at org.grails.jaxrs.web.JaxrsContext$JaxrsServiceImpl.process(JaxrsContext.java:192)
                  at org.grails.jaxrs.JaxrsController$_closure1.doCall(JaxrsController.groovy:48)
                  at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:195)
                  at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
                  at org.grails.jaxrs.web.JaxrsFilter.doFilterInternal(JaxrsFilter.java:46)
                  at java.lang.Thread.run(Thread.java:722)
  </code></pre>