title: MultiThreadedHttpConnectionManager can not Inject into service
body: <p>I'm now play around with resteasy to build a rest service, but with the default connectionManager(SimpleHttpConnectionManager), I can only sustain one connection in a long run transactional method. So I try to initialize the bean with MultiThreadedHttpConnectionManager</p>
  
  <p>my pom:</p>
  
  <pre><code>&lt;properties&gt;
      &lt;resteasy.version&gt;2.1.0.GA&lt;/resteasy.version&gt;
      &lt;spring.version&gt;3.0.5.RELEASE&lt;/spring.version&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
  &lt;/properties&gt;
  &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-beans&lt;/artifactId&gt;
          &lt;version&gt;3.0.5.RELEASE&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
          &lt;version&gt;3.0.5.RELEASE&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
  &lt;dependency&gt;
          &lt;groupId&gt;org.jboss.resteasy&lt;/groupId&gt;
          &lt;artifactId&gt;resteasy-spring&lt;/artifactId&gt;
          &lt;version&gt;${resteasy.version}&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.jboss.resteasy&lt;/groupId&gt;
          &lt;artifactId&gt;resteasy-jackson-provider&lt;/artifactId&gt;
          &lt;version&gt;${resteasy.version}&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>My applicationContext.xml</p>
  
  <pre><code>&lt;bean id="httpClient" class="org.apache.commons.httpclient.HttpClient"&gt;
      &lt;constructor-arg&gt;
          &lt;bean class="org.apache.commons.httpclient.MultiThreadedHttpConnectionManager"
              p:maxConnectionsPerHost="10"
              p:maxTotalConnections="20"/&gt;
      &lt;/constructor-arg&gt;
  &lt;/bean&gt;
  &lt;bean id="myRestService"
      class="org.jboss.resteasy.client.spring.RestClientProxyFactoryBean"
      p:serviceInterface="com.me.service.myRestService"
      p:baseUri="${serviceNameUrl}" 
      p:httpClient-ref="restHttpClient"/&gt;
  </code></pre>
  
  <p>But when I start my jboss 6 server, I got the following exception:</p>
  
  <pre><code>09:37:44,774 ERROR [ContextLoader] Context initialization failed: org.springframework.beans.factory.BeanCreationException:nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.me.service.myRestService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  Related cause: org.springframework.beans.factory.BeanCreationException: 
  Error creating bean with name 'myRestService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: 
  Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: 
  Failed to convert property value of type 'org.apache.commons.httpclient.HttpClient' to required type 'org.apache.commons.httpclient.HttpClient' for property 'httpClient'; 
  nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.apache.commons.httpclient.HttpClient] to required type [org.apache.commons.httpclient.HttpClient] for property 'httpClient': 
  no matching editors or conversion strategy found    
  </code></pre>
  
  <p>I try to search dependency version for resteasy package. But the required commons-httpclient is the same(version 3.1). So why is the "HttpClient" cant convert to "HttpClient"?     </p>