Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot load flows and views from classpath correctly in SWF 2.2.1 and JSF 2 [SWF-1425] #613

Open
spring-operator opened this issue Nov 15, 2010 · 0 comments

Comments

@spring-operator
Copy link
Contributor

spring-operator commented Nov 15, 2010

Donny A. Wijaya opened SWF-1425 and commented

I tried to put the flows and views inside META-INF in the classes folder (I am trying to experiment with SWF modularity by bundling the flows and views inside JAR). Unfortunately, the Spring Web Flow (2.2.1) will fail to load a flow identified by ID if base-path contains "classpath*:". Below is the configuration:

<webflow:flow-registry id="flowRegistry" flow-builder-services="flowBuilderServices" base-path="classpath*:/META-INF/">
	<webflow:flow-location id="parent-flow" path="parent-flow.xml"/>
	<webflow:flow-location-pattern value="/**/flow.xml" />
</webflow:flow-registry>

The error message:

org.springframework.webflow.engine.model.builder.FlowModelBuilderException: Could not access the XML flow definition at ServletContext resource [/classpath*:/META-INF/parent-flow.xml]

From the example above, if i remove the parent-flow, it will throw the following error if I try to access one of the flows:

java.lang.IllegalStateException: A ContextResource is required to get relative view paths within this context; the resource was file [/Users/wolf/Development/Workspace/webproject/target/classes/META-INF/user/user.xhtml]

I have also configured RESOURCE_RESOLVER in web.xml using Jsf2FlowResourceResolver, but it didn't work. I also include the project files to simulate this issue. Thanks a lot.

Regards,

Donny


Affects: 2.2.1

Attachments:

Issue Links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant