Open spring-operator opened 16 years ago
Keith Donald commented
Can you try this with the latest nightly build against Spring 2.5.5 and report if this is still an issue? We've improved logging as well in this area.
Keith Donald commented
We have researched this and it is currently a known limitation.
Currently, only flows located in a servlet or portlet context-relative path can load relative resources. Relative classpath flow resources are not possible at present, since the code for the JSF integration and the default MVC view->resource mapping logic is assuming the environment requires context-relative path Strings.
We will improve this in 2.0.4 for the JSF integration by allowing a custom ViewHandler to be used to map logical view ids to resources, with no such hard coded assumptions about a ContextResource. You can already do this with MVC views by plugging in a custom FlowResourceViewResolver. See #1562 for this.
As a workaround, I recommend for the time being you pack your flows and their resources inside the WAR you deploy within a WEB-INF directory there. There's still a WEB-INF even with WAR still packed.
Stephane Toussaint commented
Does branches 2.2.x or 3.0.x improve in any way this issue ? I'm not able to modularized (put flows and views in jars) the booking-faces sample for 2.2.0-RELEASE based on the workarounds found on the thread pointed by Keith. Must I try to work on those solutions or will another new feature leads to this point ?
Donny A. Wijaya commented
JSF2ResourceResolver doesn't work. I experienced the same error when I tried to experiment with primefaces sample.
James ffolliott opened SWF-1319 and commented
This may be related to http://jira.springframework.org/browse/SPR-4681 however it does not appear to be fixed in swf 2.0.1 and spring 2.5.4.
The tomcat server that I deploy to has "
unPackWars=false
", therefore I keep my flows in the classpath. However, that means the view can't be resolved with a relative view path.I get:
My config files:
admin-webflow-config.xml:
admin-webmvc-config.xml:
admin-application-config.xml:
web.xml:
Issue Links:
613 Cannot load flows and views from classpath correctly in SWF 2.2.1 and JSF 2
("is duplicated by")
746 Modular bundling of Flows and XHTML
("is duplicated by")
1562 JSF ViewFactory hard codes view id to resource mapping behavior which limits flexibilty of ViewHandler viewId->resource mapping logic
10 votes, 8 watchers