title: Unable to find a public constructor for interceptor ContentTypeSetterPreProcessorInterceptor
body: <p>I am using REST ESay API and getting the below error when starting jetty server, when I add the method in my REST service code. The aim is to override the content type with custom Charset. Please help me to resolve this issue.The method is:</p>
  
  <pre><code>@Provider
  @ServerInterceptor
  public class ContentTypeSetterPreProcessorInterceptor implements
  PreProcessInterceptor {
  public ServerResponse preProcess(HttpRequest request,
  ResourceMethod method) throws Failure, WebApplicationException
      { 
         request.setAttribute(InputPart.DEFAULT_CONTENT_TYPE_PROPERTY,
         "*/*; charset=UTF-8"); return null;
      }
  }
  </code></pre>
  
  <p>This is the stack trace: </p>
  
  <pre><code>03:11:08.232(02/06) INFO  org.jboss.resteasy.plugins.server.servlet.ConfigurationBootstrap : Adding scanned @Provider: com.lexisnexis.csa.fwu.rest.service.FWUploadService$ContentTypeSetterPreProcessorInterceptor
      03:11:08.233(02/06) INFO  org.jboss.resteasy.plugins.server.servlet.ConfigurationBootstrap : Adding scanned resource: com.lexisnexis.csa.fwu.rest.service.FWUploadService
      2015-02-06 03:11:08.796:WARN::Failed startup of context o.e.j.w.WebAppContext{/,file:/C:/Users/SHANMUK3/workspace/LN_CSA_FWU_SRVC_COMP/target/LN_CSA_FWU_SRVC_COMP/},C:\Users\SHANMUK3\workspace\LN_CSA_FWU_SRVC_COMP\target\LN_CSA_FWU_SRVC_COMP.war
      java.lang.RuntimeException: Unable to find a public constructor for interceptor class com.lexisnexis.csa.fwu.rest.service.FWUploadService$ContentTypeSetterPreProcessorInterceptor
          at org.jboss.resteasy.core.interception.InterceptorRegistry$PerMethodInterceptorFactory.&lt;init&gt;(InterceptorRegistry.java:109)
          at org.jboss.resteasy.core.interception.InterceptorRegistry.register(InterceptorRegistry.java:234)
          at org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider(ResteasyProviderFactory.java:792)
          at org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider(ResteasyProviderFactory.java:743)
          at org.jboss.resteasy.spi.ResteasyDeployment.registerProvider(ResteasyDeployment.java:505)
          at org.jboss.resteasy.spi.ResteasyDeployment.registration(ResteasyDeployment.java:305)
          at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:225)
          at org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap.contextInitialized(ResteasyBootstrap.java:28)
          at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:640)
          at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:229)
          at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1208)
          at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:586)
          at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:449)
          at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
          at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224)
          at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:164)
          at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
          at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224)
          at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
          at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:89)
          at org.eclipse.jetty.server.Server.doStart(Server.java:258)
          at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
          at com.lxnx.ols.rsf.http.server.HttpServer.start(HttpServer.java:205)
          at com.lxnx.ols.rsf.http.server.AbstractRestServer.start(AbstractRestServer.java:250)
          at com.lxnx.ols.rsf.http.server.AbstractRestServer.run(AbstractRestServer.java:193)
          at com.lexisnexis.fwu.service.DrsFWUServer.main(DrsFWUServer.java:28)
      2015-02-06 03:11:08.875:INFO::Started SelectChannelConnector@0.0.0.0:8088 STARTING
      03:11:08.891(02/06) INFO  RSF : [main] ******* DrsFWU running on RETDAYV-7610098:8088 *******
  </code></pre>
  
  <p>My web.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"&gt;
    &lt;display-name&gt;LN_CSA_FWU_SRVC_COMP&lt;/display-name&gt;
   &lt;servlet&gt;
          &lt;servlet-name&gt;resteasy-servlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;
              org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
          &lt;/servlet-class&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;resteasy-servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
      &lt;context-param&gt;
          &lt;param-name&gt;resteasy.scan&lt;/param-name&gt;
          &lt;param-value&gt;true&lt;/param-value&gt;
      &lt;/context-param&gt;
  
      &lt;listener&gt;
        &lt;listener-class&gt;
           org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
        &lt;/listener-class&gt;
     &lt;/listener&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>pom.xml:</p>
  
  <pre><code>    &lt;dependencies&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;commons-httpclient&lt;/groupId&gt;
                  &lt;artifactId&gt;commons-httpclient&lt;/artifactId&gt;
                  &lt;version&gt;3.1&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;commons-fileupload&lt;/groupId&gt;
                  &lt;artifactId&gt;commons-fileupload&lt;/artifactId&gt;
                  &lt;version&gt;1.2.1&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;commons-io&lt;/groupId&gt; 
                  &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
                  &lt;version&gt;2.3&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;commons-logging&lt;/groupId&gt;
                  &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
                  &lt;version&gt;1.1.1&lt;/version&gt;
              &lt;/dependency&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.jboss.resteasy&lt;/groupId&gt;
                  &lt;artifactId&gt;resteasy-jaxrs&lt;/artifactId&gt;
                  &lt;version&gt;2.3.1.GA&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;net.sf.scannotation&lt;/groupId&gt;
                  &lt;artifactId&gt;scannotation&lt;/artifactId&gt;
                  &lt;version&gt;1.0.2&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;!-- JAXB provider --&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.jboss.resteasy&lt;/groupId&gt;
                  &lt;artifactId&gt;resteasy-jaxb-provider&lt;/artifactId&gt;
                  &lt;version&gt;2.3.1.GA&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;!-- Multipart support --&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.jboss.resteasy&lt;/groupId&gt;
                  &lt;artifactId&gt;resteasy-multipart-provider&lt;/artifactId&gt;
                  &lt;version&gt;2.3.1.GA&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
                  &lt;artifactId&gt;httpmime&lt;/artifactId&gt;
                  &lt;version&gt;4.2.5&lt;/version&gt;
              &lt;/dependency&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
                  &lt;artifactId&gt;httpcore&lt;/artifactId&gt;
                  &lt;version&gt;4.2.4&lt;/version&gt;
              &lt;/dependency&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
                  &lt;artifactId&gt;fluent-hc&lt;/artifactId&gt;
                  &lt;version&gt;4.2.5&lt;/version&gt;
              &lt;/dependency&gt;
  </code></pre>