java.io.FileNotFoundException: ServletContext resource [/WEB-INF/flows/efetuarLogin/efetuarLogin.xml] cannot be resolved to absolute file path - web application archive not expanded?

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
    java.io.FileNotFoundException: ServletContext resource [/WEB-INF/flows/efetuarLogin/efetuarLogin.xml] cannot be resolved to absolute file path - web application archive not expanded?
  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
    java.io.FileNotFoundException: ServletContext resource [/WEB-INF/flows/efetuarLogin/efetuarLogin.xml] cannot be resolved to absolute file path - web application archive not expanded?
  3. 0

    Deploying WebApplication as a WAR file on Weblogic using SFTP Adapter

    Stack Overflow | 1 year ago | user3548196
    POM.XML: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.abc.tsi</groupId> <artifactId>tsi-ibs2bank</artifactId> <packaging>pom</packaging> <version>1.1-SNAPSHOT</version> <name>Project</name> <modules> <module>tsi-a-core</module> <module>tsi-b-services</module> </modules> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.1</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> </pluginManagement> <extensions> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-webdav-jackrabbit</artifactId> <version>1.0-beta-7</version> </extension> </extensions> </build> <properties> <cxf.version>3.0.1</cxf.version> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> </project> Stacktrace: synchronizing remote to local directory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    If I use the following contextConfigLocation in web.xml, I get an error from the ContextLoaderListener: <context-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/applicationContext-*.xml </param-value> </context-param> Error: [appfuse] ERROR [main] ContextLoader.initWebApplicationContext(108) | Context initialization failed org.springframework.context.ApplicationContextException: I/O error parsing XML document for application context [Root XmlWebApplicationContext]; nested exception is java.io.FileNotFoundException: resource [/WEB-INF] of ServletContext cannot be resolved to absolute file path - web application archive not expanded? java.io.FileNotFoundException: resource [/WEB-INF] of ServletContext cannot be resolved to absolute file path - web application archive not expanded? at org.springframework.web.context.support.ServletContextResource.getFile(ServletContextResource.java:97) I can fix this by using explicit paths to each of my files: <context-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/applicationContext-resources.xml, /WEB-INF/applicationContext-hibernate.xml, /WEB-INF/applicationContext-service.xml </param-value> </context-param> It'd be nice if the first syntax would work when loading context files from non-expanded WAR files.

    Spring JIRA | 1 decade ago | Matt Raible
    java.io.FileNotFoundException: resource [/WEB-INF] of ServletContext cannot be resolved to absolute file path - web application archive not expanded?
  6. 0

    Server-side playlist bug

    GitHub | 2 years ago | GoogleCodeExporter
    java.io.FileNotFoundException: ServletContext resource [/streams/webtv.flv] cannot be resolved to URL because it does not exist

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. Spring
      ServletContextResource.getFile
      1. org.springframework.web.util.WebUtils.getRealPath(WebUtils.java:220)
      2. org.springframework.web.context.support.ServletContextResource.getFile(ServletContextResource.java:141)
      2 frames
    3. Spring Core
      AbstractResource.lastModified
      1. org.springframework.core.io.AbstractResource.getFileForLastModifiedCheck(AbstractResource.java:132)
      2. org.springframework.core.io.AbstractResource.lastModified(AbstractResource.java:116)
      2 frames
    4. Spring Web Flow
      XmlFlowModelBuilder.init
      1. org.springframework.webflow.engine.model.builder.xml.XmlFlowModelBuilder.init(XmlFlowModelBuilder.java:112)
      1 frame