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

ClassPathContextResource should also return ClassPathContextResource from createRelative [SPR-4681] #9358

Closed
spring-projects-issues opened this issue Apr 9, 2008 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Apr 9, 2008

Keith Donald opened SPR-4681 and commented

This occurred testing SWF 2 with Spring 2.5.3:

java.lang.IllegalStateException: A ContextResource is required to get relative view paths within this context
org.springframework.faces.webflow.JsfViewFactory.resolveViewName(JsfViewFactory.java:148)
org.springframework.faces.webflow.JsfViewFactory.getView(JsfViewFactory.java:76)
org.springframework.webflow.engine.ViewState.resume(ViewState.java:209)
org.springframework.webflow.engine.Flow.resume(Flow.java:511)
org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:295)
org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:132)
org.springframework.webflow.mvc.servlet.FlowController.handleRequestInternal(FlowController.java:130)
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:523)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:453)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

The flow was stored in the classpath.
the class path resource to the flow was not a context resource.
therefore, relative view resoure paths could not be obtained.
should all class path resources be context resources? if not, why? why only some?


Affects: 2.5.3

@spring-projects-issues spring-projects-issues added type: enhancement A general enhancement in: core Issues in core modules (aop, beans, core, context, expression) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 2.5.4 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants