title: No such bean definition found?
body: <p>I am working on a portal project. When I deploy portlets into WebSphere I am getting <code>NoSuchBeanDefintionException</code> and I also checked for the package in <code>component-scan</code> and also googled about it, but I didn't find any solution. All the required packages in context.xml of every portlet.</p>
  
  <p>Please see below for the logs</p>
  
  <pre><code>Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.myhealthone.common.model.Account com.hca.cpp.coreservice.UserServiceImpl.account; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.myhea.common.model.Account] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@ringframework.beans.factory.annotation.Autowired(required=true)}
  &gt; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcesva:514)
  &gt; at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
  &gt; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor285)
          ... 147 more
  &gt; Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.myhealthone.common.model.Account] found for depy: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotatiowired(required=true)}
  </code></pre>
  
  <p>I added all the required packages to component-scan.</p>