Skip to content

Unsupported view type *.xhtml only types supported by this FlowViewResolver implementation are [.jsp] and [.jspx] #1839

@quocbaodn94

Description

@quocbaodn94

Hi All,
Currently,
I'm migrating the jsf, Spring MVC, and webflow 3.0.0 to springboot 3.5.5.
It is working normally on the springmvc, but the springboot jar file error.

WebFlowConfig1.java
WebMvcConfig.java

But I can't load the xhtml view.
It is not nice.
Message error:

Caused by: java.lang.IllegalArgumentException: Unsupported view type META-INF/flows/upload.xhtml only types supported by this FlowViewResolver implementation are [.jsp] and [.jspx] at org.springframework.webflow.mvc.builder.FlowResourceFlowViewResolver.getViewInternal(FlowResourceFlowViewResolver.java:95) ~[spring-webflow-3.0.0.jar!/:3.0.0] at org.springframework.webflow.mvc.builder.FlowResourceFlowViewResolver.resolveView(FlowResourceFlowViewResolver.java:73) ~[spring-webflow-3.0.0.jar!/:3.0.0] at org.springframework.webflow.mvc.view.AbstractMvcViewFactory.getView(AbstractMvcViewFactory.java:95) ~[spring-webflow-3.0.0.jar!/:3.0.0] at org.springframework.webflow.engine.ViewState.doEnter(ViewState.java:183) ~[spring-webflow-3.0.0.jar!/:3.0.0] at org.springframework.webflow.engine.State.enter(State.java:194) ~[spring-webflow-3.0.0.jar!/:3.0.0] at org.springframework.webflow.engine.Flow.start(Flow.java:527) ~[spring-webflow-3.0.0.jar!/:3.0.0] at

https://github.com/spring-projects/spring-webflow/blob/main/spring-webflow/src/main/java/org/springframework/webflow/mvc/builder/FlowResourceFlowViewResolver.java
Method getViewInternal FlowResourceFlowViewResolver file in At the line 95, 96.
"throw new IllegalArgumentException("Unsupported view type " + viewPath+ " only types supported by this FlowViewResolver implementation are [.jsp] and [.jspx]");"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions