title: Why can I not have the same Controller name in a different package with annotation-based configuration?
body: <pre><code>Jul 27, 2011 10:56:15 AM org.springframework.web.servlet.FrameworkServlet 
  initServletBean
  
  SEVERE: Context initialization failed
  org.springframework.beans.factory.BeanDefinitionStoreException: 
  
  Unexpected exception parsing XML document from ServletContext resource
  [/WEB-INF/dispatcher-servlet.xml]; 
  
  nested exception is java.lang.IllegalStateException: 
  
  Annotation-specified bean name 'fooController' for 
  bean class [com.fooapp.ctrl.FooController] 
  conflicts with existing, non-compatible bean definition of same name 
  and class [com.fooapp.ctrl.admin.FooController]
  </code></pre>
  
  <p>In both packages I defined the Controller using the <code>@Controller</code> annotation:</p>
  
  <pre><code>@Controller
  public class FooController {
  ...
  </code></pre>
  
  <p>Do I have to use a different name for the Controller in the <code>admin</code> package?</p>