<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=ubaggili" rel="nofollow">Ussama Baggili</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5743?redirect=false" rel="nofollow">SPR-5743</a></strong> and commented</p>
<p dir="auto">In web.xml, using the following fails to register all the mappings:</p>
<p dir="auto">&lt;context-param&gt;<br>
&lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;<br>
&lt;param-value&gt;<br>
/WEB-INF/applicationContext*.xml<br>
&lt;/param-value&gt;<br>
&lt;/context-param&gt;<br>
&lt;listener&gt;<br>
&lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;<br>
&lt;/listener&gt;<br>
&lt;servlet&gt;<br>
&lt;servlet-name&gt;security-ws&lt;/servlet-name&gt;<br>
&lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;<br>
&lt;init-param&gt;<br>
&lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;<br>
&lt;param-value&gt;&lt;/param-value&gt;      &lt;----------------------------------------------- empty value<br>
&lt;/init-param&gt;<br>
&lt;load-on-startup&gt;1&lt;/load-on-startup&gt;<br>
&lt;/servlet&gt;</p>
<p dir="auto">while using the following without the global context-param for contextConfigLocation succeeds:</p>
<p dir="auto">&lt;servlet&gt;<br>
&lt;servlet-name&gt;security-ws&lt;/servlet-name&gt;<br>
&lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;<br>
&lt;init-param&gt;<br>
&lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;<br>
&lt;param-value&gt;/WEB-INF/applicationContext*.xml&lt;/param-value&gt;<br>
&lt;/init-param&gt;<br>
&lt;load-on-startup&gt;1&lt;/load-on-startup&gt;<br>
&lt;/servlet&gt;</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0 M3</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="398092456" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10041" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10041/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10041">#10041</a> <code class="notranslate">@Controllers</code> deployed in the root Spring context not auto-detected by default annotation handler mapping (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=srankin" rel="nofollow">Scott Rankin</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2278?redirect=false" rel="nofollow">SPR-2278</a></strong> and commented</p>
<p dir="auto">In RC1, when the DefaultAdvisorAutoProxyCreator is initialized, it finds and initializes all candidate advisors (code is in AbstractAdvisorAutoProxyCreator.setBeanFactory()). This code has the effect of initializing my Hibernate SessionFactoryBean before any other beans come along and need it.</p>
<p dir="auto">In RC2, the code to pre-load candidate advisors has been removed. What this seems to produce is a circular dependency. When my application beans try to request the Hibernate SessionFactoryBean, it goes through a lot of dependencies, including the AutoProxyCreator, which depends on the TransactionSourceAdvisor, which depends on the TransactionInterceptor, which depends on the SessionFactoryBean. And so I get a NPE trying to instantiate the autoproxy creator.</p>
<p dir="auto">This only seems to happen if the first bean in the XML file references the session factory.  If I move the bean that references the session factory to below it, the problem goes away.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0 RC2</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/11799/spring-beans.xml" rel="nofollow">spring-beans.xml</a> (<em>2.49 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/11800/TestSpringBug.java" rel="nofollow">TestSpringBug.java</a> (<em>822 bytes</em>)</li>
</ul>
<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="398068225" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6972" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6972/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6972">#6972</a> NPE in AbstractAutoProxyCreator when using RC2 (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto">2 votes, 2 watchers</p>