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

SpringBoot, Spring WebFlow, Spring Faces and the Classpath [SWF-1745] #920

Open
spring-operator opened this issue Apr 13, 2021 · 2 comments
Labels
in: integration status: waiting-for-triage We need additional information before we can continue

Comments

@spring-operator
Copy link
Contributor

Danilo opened SWF-1745 and commented

Hello,

we're trying to bring a legacy WAR application (once deployed on an ordinary Application Server) over to Spring Boot (as a JAR).

The application uses WebFlow and Faces, among other stuff; and it uses JSF as the templating technology. Configuring the all of this as shown in the WebFlowConfiguration.java attachment and positioning the other two attachments over into src/main/resources/flows/view just doesn't work.

What happens is that the flow is 100% reachable on the address:

http://localhost:8080/context-path/mvc-servlet-path/view


Affects: 2.5.1

Attachments:

@spring-operator
Copy link
Contributor Author

Danilo commented

Sorry, I inadvertedly submitted the issue without even completing it and cannot find how to edit it. :( I'll continue here:


The problem is that the flow is reachable, but when it tries to load the xhtml, the FlowViewHandler Spring class trips upon this:

throw new IllegalStateException("A ContextResource is required to get relative view paths within this context; the resource was " + viewResource);

so it looks like that Spring Faces just cannot load templates from the classpath. Is this correct? What is the correct way to expose flows and templates on a SpringBoot/WebFlow/Faces application?

@spring-operator
Copy link
Contributor Author

Rossen Stoyanchev commented

It would really help if you could provide a minimal sample rather than snippets of configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: integration status: waiting-for-triage We need additional information before we can continue
Projects
None yet
Development

No branches or pull requests

1 participant