org.springframework.webflow.engine.model.builder.FlowModelBuilderException: Could not access the XML flow definition at ServletContext resource [/WEB-INF/flows/efetuarLogin/efetuarLogin.xml]

Spring JIRA | Mauricio Noda | 8 years ago
  1. 0

    XML flow definition files are being accessed directly with absolute paths instead of indirectly through ServletContext. The result is you can´t use Web Flow with unexpanded war files in Weblogic. org.springframework.webflow.definition.registry.FlowDefinitionConstructionException: An exception occurred constructing the flow 'efetuarLogin' at org.springframework.webflow.engine.builder.DefaultFlowHolder.assembleFlow(DefaultFlowHolder.java:98) at org.springframework.webflow.engine.builder.DefaultFlowHolder.getFlowDefinition(DefaultFlowHolder.java:77) at org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl.getFlowDefinition(FlowDefinitionRegistryImpl.java:60) at org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:131) at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:183) Truncated. see log file for complete stacktrace org.springframework.webflow.engine.builder.FlowBuilderException: Unable to get the model for this flow at org.springframework.webflow.engine.builder.model.FlowModelFlowBuilder.doInit(FlowModelFlowBuilder.java:144) at org.springframework.webflow.engine.builder.support.AbstractFlowBuilder.init(AbstractFlowBuilder.java:54) at org.springframework.webflow.engine.builder.FlowAssembler.assembleFlow(FlowAssembler.java:90) at org.springframework.webflow.engine.builder.DefaultFlowHolder.assembleFlow(DefaultFlowHolder.java:96) at org.springframework.webflow.engine.builder.DefaultFlowHolder.getFlowDefinition(DefaultFlowHolder.java:77) Truncated. see log file for complete stacktrace org.springframework.webflow.engine.model.builder.FlowModelBuilderException: Could not access the XML flow definition at ServletContext resource [/WEB-INF/flows/efetuarLogin/efetuarLogin.xml] at org.springframework.webflow.engine.model.builder.xml.XmlFlowModelBuilder.init(XmlFlowModelBuilder.java:114) at org.springframework.webflow.engine.model.builder.DefaultFlowModelHolder.assembleFlowModel(DefaultFlowModelHolder.java:86) at org.springframework.webflow.engine.model.builder.DefaultFlowModelHolder.getFlowModel(DefaultFlowModelHolder.java:61) at org.springframework.webflow.engine.builder.model.FlowModelFlowBuilder.doInit(FlowModelFlowBuilder.java:142) at org.springframework.webflow.engine.builder.support.AbstractFlowBuilder.init(AbstractFlowBuilder.java:54) Truncated. see log file for complete stacktrace java.io.FileNotFoundException: ServletContext resource [/WEB-INF/flows/efetuarLogin/efetuarLogin.xml] cannot be resolved to absolute file path - web application archive not expanded? at org.springframework.web.util.WebUtils.getRealPath(WebUtils.java:220) at org.springframework.web.context.support.ServletContextResource.getFile(ServletContextResource.java:141) at org.springframework.core.io.AbstractResource.getFileForLastModifiedCheck(AbstractResource.java:132) at org.springframework.core.io.AbstractResource.lastModified(AbstractResource.java:116) at org.springframework.webflow.engine.model.builder.xml.XmlFlowModelBuilder.init(XmlFlowModelBuilder.java:112) Truncated. see log file for complete stacktrace

    Spring JIRA | 8 years ago | Mauricio Noda
    org.springframework.webflow.engine.model.builder.FlowModelBuilderException: Could not access the XML flow definition at ServletContext resource [/WEB-INF/flows/efetuarLogin/efetuarLogin.xml]
  2. 0

    XML flow definition files are being accessed directly with absolute paths instead of indirectly through ServletContext. The result is you can´t use Web Flow with unexpanded war files in Weblogic. org.springframework.webflow.definition.registry.FlowDefinitionConstructionException: An exception occurred constructing the flow 'efetuarLogin' at org.springframework.webflow.engine.builder.DefaultFlowHolder.assembleFlow(DefaultFlowHolder.java:98) at org.springframework.webflow.engine.builder.DefaultFlowHolder.getFlowDefinition(DefaultFlowHolder.java:77) at org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl.getFlowDefinition(FlowDefinitionRegistryImpl.java:60) at org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:131) at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:183) Truncated. see log file for complete stacktrace org.springframework.webflow.engine.builder.FlowBuilderException: Unable to get the model for this flow at org.springframework.webflow.engine.builder.model.FlowModelFlowBuilder.doInit(FlowModelFlowBuilder.java:144) at org.springframework.webflow.engine.builder.support.AbstractFlowBuilder.init(AbstractFlowBuilder.java:54) at org.springframework.webflow.engine.builder.FlowAssembler.assembleFlow(FlowAssembler.java:90) at org.springframework.webflow.engine.builder.DefaultFlowHolder.assembleFlow(DefaultFlowHolder.java:96) at org.springframework.webflow.engine.builder.DefaultFlowHolder.getFlowDefinition(DefaultFlowHolder.java:77) Truncated. see log file for complete stacktrace org.springframework.webflow.engine.model.builder.FlowModelBuilderException: Could not access the XML flow definition at ServletContext resource [/WEB-INF/flows/efetuarLogin/efetuarLogin.xml] at org.springframework.webflow.engine.model.builder.xml.XmlFlowModelBuilder.init(XmlFlowModelBuilder.java:114) at org.springframework.webflow.engine.model.builder.DefaultFlowModelHolder.assembleFlowModel(DefaultFlowModelHolder.java:86) at org.springframework.webflow.engine.model.builder.DefaultFlowModelHolder.getFlowModel(DefaultFlowModelHolder.java:61) at org.springframework.webflow.engine.builder.model.FlowModelFlowBuilder.doInit(FlowModelFlowBuilder.java:142) at org.springframework.webflow.engine.builder.support.AbstractFlowBuilder.init(AbstractFlowBuilder.java:54) Truncated. see log file for complete stacktrace java.io.FileNotFoundException: ServletContext resource [/WEB-INF/flows/efetuarLogin/efetuarLogin.xml] cannot be resolved to absolute file path - web application archive not expanded? at org.springframework.web.util.WebUtils.getRealPath(WebUtils.java:220) at org.springframework.web.context.support.ServletContextResource.getFile(ServletContextResource.java:141) at org.springframework.core.io.AbstractResource.getFileForLastModifiedCheck(AbstractResource.java:132) at org.springframework.core.io.AbstractResource.lastModified(AbstractResource.java:116) at org.springframework.webflow.engine.model.builder.xml.XmlFlowModelBuilder.init(XmlFlowModelBuilder.java:112) Truncated. see log file for complete stacktrace

    Spring JIRA | 8 years ago | Mauricio Noda
    org.springframework.webflow.engine.model.builder.FlowModelBuilderException: Could not access the XML flow definition at ServletContext resource [/WEB-INF/flows/efetuarLogin/efetuarLogin.xml]
  3. 0

    Exception if I declare Global transitions in flow - Spring Forum

    spring.io | 1 year ago
    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.webflow.definition.registry.FlowDefinitionConstructionException: An exception occurred constructing the flow 'search-flow'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    No navigation between different views

    Stack Overflow | 7 months ago | Sara LOUKBACHE
    org.springframework.webflow.engine.model.builder.FlowModelBuilderException: Could not parse the XML flow definition document at ServletContext resource [/WEB-INF/flows/composantinfoutil/zf1/cu1-flow.xml]

    Root Cause Analysis

    1. org.springframework.webflow.engine.model.builder.FlowModelBuilderException

      Could not access the XML flow definition at ServletContext resource [/WEB-INF/flows/efetuarLogin/efetuarLogin.xml]

      at org.springframework.webflow.engine.model.builder.xml.XmlFlowModelBuilder.init()
    2. Spring Web Flow
      AbstractFlowBuilder.init
      1. org.springframework.webflow.engine.model.builder.xml.XmlFlowModelBuilder.init(XmlFlowModelBuilder.java:114)
      2. org.springframework.webflow.engine.model.builder.DefaultFlowModelHolder.assembleFlowModel(DefaultFlowModelHolder.java:86)
      3. org.springframework.webflow.engine.model.builder.DefaultFlowModelHolder.getFlowModel(DefaultFlowModelHolder.java:61)
      4. org.springframework.webflow.engine.builder.model.FlowModelFlowBuilder.doInit(FlowModelFlowBuilder.java:142)
      5. org.springframework.webflow.engine.builder.support.AbstractFlowBuilder.init(AbstractFlowBuilder.java:54)
      5 frames