<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=pakin" rel="nofollow">Angel</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8684?redirect=false" rel="nofollow">SPR-8684</a></strong> and commented</p>
<p dir="auto">Rossen,</p>
<p dir="auto">in order to have this functionality available and be backward compatible at the same time could be having two additional paramters in the form tag:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;form:form method=&quot;post&quot; action=&quot;/registration/submit&quot; commandName=&quot;registrationForm&quot; resolveContext=&quot;true&quot; resolveMapping=&quot;true&quot;&gt;
  ...
&lt;/form:form&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">form:form</span> <span class="pl-c1">method</span>="<span class="pl-s">post</span>" <span class="pl-c1">action</span>="<span class="pl-s">/registration/submit</span>" <span class="pl-c1">commandName</span>="<span class="pl-s">registrationForm</span>" <span class="pl-c1">resolveContext</span>="<span class="pl-s">true</span>" <span class="pl-c1">resolveMapping</span>="<span class="pl-s">true</span>"<span class="pl-kos">&gt;</span>
  ...
<span class="pl-kos">&lt;/</span><span class="pl-ent">form:form</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">If you agree I am happy to implement :-)</p>
<p dir="auto">Cheers.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 M2</p>
<p dir="auto"><strong>Reference URL:</strong> <a href="https://jira.springsource.org/browse/SPR-8638" rel="nofollow">https://jira.springsource.org/browse/SPR-8638</a></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="398103552" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11609" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11609/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11609">#11609</a> Prepend contextPath in form tag (<em><strong>"duplicates"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398095218" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10449" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10449/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10449">#10449</a> Allow links to <code class="notranslate">@Controller</code> methods from views without hardcoding URLs</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398157923" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/15015" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/15015/hovercard" href="https://github.com/spring-projects/spring-framework/issues/15015">#15015</a> Form tag prepending context/servlet path breaks use for portlets</li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/ad025b59c5e933fb7181c76f530e1f4ecc8f7c50/hovercard" href="https://github.com/spring-projects/spring-framework/commit/ad025b59c5e933fb7181c76f530e1f4ecc8f7c50"><tt>ad025b5</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=reinhard" rel="nofollow">Reinhard Pötz</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4081?redirect=false" rel="nofollow">SPR-4081</a></strong> and commented</p>
<p dir="auto">The return type of o.s.b.f.x.XmlBeanDefinitionReader#getReader() has changed from</p>
<p dir="auto">org.springframework.beans.factory.xml.XmlBeanDefinitionReader</p>
<p dir="auto">to</p>
<p dir="auto">org.springframework.beans.factory.support.BeanDefinitionReader</p>
<p dir="auto">If you use this method you have to recompile your code, otherwise you get following exception:</p>
<p dir="auto">org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlReaderContext.getReader()Lorg/springframework/beans/factory/xml/XmlBeanDefinitionReader;<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:385)<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:313)<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:290)<br>
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)<br>
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:158)<br>
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)<br>
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)<br>
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:97)<br>
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:411)<br>
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:338)<br>
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:245)<br>
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:188)<br>
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)</p>
<p dir="auto">Since this change prevents you from just dropping in the new Spring libs into your application, I marked this report as "blocker".</p>
<p dir="auto">BTW, I'm not the only one who run into this problem: See also <a href="https://issues.apache.org/jira/browse/XBEAN-88" rel="nofollow">https://issues.apache.org/jira/browse/XBEAN-88</a></p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5 RC1</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="398082535" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8768" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8768/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8768">#8768</a> Issue with apache xbean when upgrading spring from 2.0 to 2.1-rc or 2.5-rc1 (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>