<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=logemann" rel="nofollow">Marc Logemann</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-1623?redirect=false" rel="nofollow">SPR-1623</a></strong> and commented</p>
<p dir="auto">wouldnt it make sense to enhance WebApplicationContextUtils with sister methods which accept a PortletContext? Currently I am working in a Portal Environment where its not easy to get a ServletContext, but a PortletContext is not different at all, unfortunately Websphere's PortletContext doesnt extend ServletContext.</p>
<p dir="auto">perhaps like this:</p>
<p dir="auto">static WebApplicationContext getRequiredWebApplicationContext(PortletContext pc)<br>
static WebApplicationContext getWebApplicationContext(PortletContext pc)</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 1.2.6</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=kdonald" rel="nofollow">Keith Donald</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5368?redirect=false" rel="nofollow">SPR-5368</a></strong> and commented</p>
<p dir="auto">It is common to use a component-scan directive in your app-config to populate your root application context.<br>
Unfortunately, discovered <code class="notranslate">@Controllers</code> will not be hooked into the DispatcherServlet pipeline without also configuring a custom DefaultAnnotationHandlerMapping bean in this same context.<br>
This appears to because the default AnnotationHandlerMapping instance the DispatcherServlet references does not detect handlers in ancestor contexts.<br>
It would be nice if it would detect <code class="notranslate">@Controllers</code> in ancestor contexts by default... then no explicit DefaultAnnotationHandlerMapping would need to be registered if no other strategies were needed.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.6</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398094955" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10413" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10413/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10413">#10413</a> AbstractUrlHandlerMapping registerHandler does not register REST url paths if configured in global web.xml contextConfigLocation param instead of DispatcherServlet init-param (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>