<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=dmarko" rel="nofollow">Mark Dolgov</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3431?redirect=false" rel="nofollow">SPR-3431</a></strong> and commented</p>
<p dir="auto">Reference manual for ver. 2.0.4<br>
<a href="http://static.springframework.org/spring/docs/2.0.x/reference/beans.html" rel="nofollow">http://static.springframework.org/spring/docs/2.0.x/reference/beans.html</a><br>
Section 3.2.2.1<br>
The problem is still there!</p>
<p dir="auto">(Copied form related bug: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398077436" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8093" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8093/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8093">#8093</a>)</p>
<p dir="auto">The xml shown in section 3.2.1.1 of documentation is missing the following text "<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a>" in xsi:schemaLocation attribute of beans tag. If we try this xml, we get org.xml.sax.SAXParseException with message '</p>
<p dir="auto">'SchemaLocation: schemaLocation value = ' <a href="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd" rel="nofollow">http://www.springframework.org/schema/beans/spring-beans-2.0.xsd</a>' must have even number of URI's.'</p>
<p dir="auto">The old xml is :</p>
<p dir="auto">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p>
<p dir="auto">&lt;beans xmlns="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a>"<br>
xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow">http://www.w3.org/2001/XMLSchema-instance</a>"<br>
xsi:schemaLocation="<a href="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd%22%3E" rel="nofollow">http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"&gt;</a></p>
<p dir="auto">&lt;bean id="..." class="..."&gt;<br>
&lt;!-- collaborators and configuration for this bean go here --&gt;<br>
&lt;/bean&gt;<br>
&lt;bean id="..." class="..."&gt;<br>
&lt;!-- collaborators and configuration for this bean go here --&gt;<br>
&lt;/bean&gt;<br>
&lt;!---- more bean definitions go here... --&gt;<br>
&lt;/beans&gt;</p>
<p dir="auto">The new xml should be :</p>
<p dir="auto">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p>
<p dir="auto">&lt;beans xmlns="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a>"<br>
xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow">http://www.w3.org/2001/XMLSchema-instance</a>"<br>
xsi:schemaLocation="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a> <a href="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd%22%3E" rel="nofollow">http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"&gt;</a></p>
<p dir="auto">&lt;bean id="..." class="..."&gt;<br>
&lt;!-- collaborators and configuration for this bean go here --&gt;<br>
&lt;/bean&gt;<br>
&lt;bean id="..." class="..."&gt;<br>
&lt;!-- collaborators and configuration for this bean go here --&gt;<br>
&lt;/bean&gt;<br>
&lt;!---- more bean definitions go here... --&gt;<br>
&lt;/beans&gt;</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.4</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="398077142" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8056" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8056/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8056">#8056</a> Wrong bean configuration xml file header in Spring 2.0.4 PDF Reference Manual : missing data in xsi:schemaLocation (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=hekonsek" rel="nofollow">Henryk Konsek</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7868?redirect=false" rel="nofollow">SPR-7868</a></strong> and commented</p>
<p dir="auto">I created simple bean implementing BeanDefinitionRegistryPostProcessor. All I want to do is to register some bean definition in the BeanDefinitionRegistryPostProcessor#postProcessBeanDefinitionRegistry method. The problem is that code working with ClassPathXmlApplicationContext doesn't work with AnnotationConfigApplicationContext.</p>
<p dir="auto">My intelligent guess would be that BeanDefinitionRegistryPostProcessor#postProcessBeanDefinitionRegistry is called after JavaConfig bean postprocessor.</p>
<p dir="auto">I'm attaching minimal Maven project with two unit tests (XmlTest &amp; AnnotationTest) to demonstrate the issue.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.5</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/17503/registryBug.zip" rel="nofollow">registryBug.zip</a> (<em>23.00 kB</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="398150911" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14099" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14099/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14099">#14099</a> Method postProcessBeanDefinitionRegistry is not called if the bean implements BeanDefinitionRegistryPostProcessor (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398111929" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12917" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12917/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12917">#12917</a> BeanFactoryPostProcessor breaks default post-processing of <code class="notranslate">@Configuration</code> classes</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398159434" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/15258" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/15258/hovercard" href="https://github.com/spring-projects/spring-framework/issues/15258">#15258</a> Allow BeanDefinitionRegistryPostProcessor to register other BeanDefinitionRegistryPostProcessors</li>
</ul>