For those of you running M4, there are a few configuration changes you will likely need to make when upgrading to 2.0.0.RC1. Thanks to Peter for initially compiling this list for the benefit of our community. I've taken the list, added to it, and stuck this thread.
M4 to 2.0.0.RC1 Configuration Changes
--------------------------------------------
The ResourceServlet has moved from Spring Faces to Spring Javascript (spring-js), as it is reusable outside of a JSF environment:
The faces-config namespace has changed to just 'faces', in-line with Spring schema naming conventions:Code:M4: org.springframework.faces.ui.resource.ResourceServlet RC1: org.springframework.js.resource.ResourceServlet
The Spring MVC FlowController has moved to the mvc.servlet package, since there is also now mvc.portlet support:Code:M4: xmlns:faces="http://www.springframework.org/schema/faces-config" http://www.springframework.org/schema/faces-config http://www.springframework.org/schema/faces-config/spring-faces-config-2.0.xsd RC1: xmlns:faces="http://www.springframework.org/schema/faces" http://www.springframework.org/schema/faces http://www.springframework.org/schema/faces/spring-faces-2.0.xsd
You will see this error if defining flow <var>'s that use the 'scope' attribute:Code:M4: org.springframework.webflow.mvc.FlowController RC1: org.springframework.webflow.mvc.servlet.FlowController
The <flow> <var> element no longer has a 'scope' attribute. Flow instance variables should be flow scoped, so the attribute is unnecessary. For those using a value of 'conversation' before, first evaluate if you need conversation scope instead of flow scope; if so, set the conversation scoped variable using an on-start action instead.Code:org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'scope' is not allowed to appear in element 'var'.
You will see this error if you are not running Spring Framework 2.5.3:
Web Flow 2.0.0.RC1 requires Spring 2.5.3.Code:org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoSuchMethodError: org.springframework.util.xml.DomUtils.getChildElementsByTagName(Lorg/w3c/dom/Element;[Ljava/lang/String;)Ljava/util/List;


Reply With Quote
