java.io.FileNotFoundException: URL [war:file:/Users/jvdmr/spring-boot-war-example/target/] cannot be resolved to absolute file path because it does not reside in the file system: war:file:/Users/jvdmr/spring-boot-war-example/target/

GitHub | jvdmr | 1 month ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Resource resolution may fail in executable war that embeds Tomcat

    GitHub | 1 month ago | jvdmr
    java.io.FileNotFoundException: URL [war:file:/Users/jvdmr/spring-boot-war-example/target/] cannot be resolved to absolute file path because it does not reside in the file system: war:file:/Users/jvdmr/spring-boot-war-example/target/
  2. 0

    Placing files under WEB-INF directory and reading them

    Stack Overflow | 6 months ago | Ashok.N
    java.io.FileNotFoundException: URL [jndi:/localhost/pqawdTestWebApp/WEB-INF/CustomerService/spring-integration/Jobs/] cannot be resolved to absolute file path because it does not reside in the file system: jndi:/localhost/pqawdTestWebApp/WEB-INF/CustomerService/spring-integration/Jobs/
  3. 0

    activiti-app.war it not getting explored in Tomcat8

    Stack Overflow | 3 months ago | Madan Chowdary
    java.io.FileNotFoundException: URL [war:file:/var/lib/tomcat8/webapps/activiti-app.war*/WEB-INF/classes/com/activiti/conf/] cannot be resolved to absolute file path bin the file system: war:file:/var/lib/tomcat8/webapps/activiti-app.war*/WEB-INF/classes/com/activiti/conf/
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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

      URL [war:file:/Users/jvdmr/spring-boot-war-example/target/] cannot be resolved to absolute file path because it does not reside in the file system: war:file:/Users/jvdmr/spring-boot-war-example/target/

      at org.springframework.util.ResourceUtils.getFile()
    2. Spring Core
      PathMatchingResourcePatternResolver.doFindPathMatchingFileResources
      1. org.springframework.util.ResourceUtils.getFile(ResourceUtils.java:218)[spring-core-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2. org.springframework.core.io.AbstractFileResolvingResource.getFile(AbstractFileResolvingResource.java:52)[spring-core-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      3. org.springframework.core.io.UrlResource.getFile(UrlResource.java:213)[spring-core-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      4. org.springframework.core.io.support.PathMatchingResourcePatternResolver.doFindPathMatchingFileResources(PathMatchingResourcePatternResolver.java:685)[spring-core-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      4 frames
    3. Spring
      ServletContextResourcePatternResolver.doFindPathMatchingFileResources
      1. org.springframework.web.context.support.ServletContextResourcePatternResolver.doFindPathMatchingFileResources(ServletContextResourcePatternResolver.java:92)[spring-web-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      1 frame
    4. Spring Core
      PathMatchingResourcePatternResolver.getResources
      1. org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:477)[spring-core-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2. org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:292)[spring-core-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2 frames
    5. Spring MVC
      SpringWildcardServletTilesApplicationContext.getResource
      1. org.springframework.web.servlet.view.tiles3.SpringWildcardServletTilesApplicationContext.getResources(SpringWildcardServletTilesApplicationContext.java:77)[spring-webmvc-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2. org.springframework.web.servlet.view.tiles3.SpringWildcardServletTilesApplicationContext.getResource(SpringWildcardServletTilesApplicationContext.java:66)[spring-webmvc-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2 frames
    6. Tiles - Core Library
      CachingLocaleUrlDefinitionDAO.getDefinition
      1. org.apache.tiles.definition.dao.CachingLocaleUrlDefinitionDAO.loadRawDefinitionsFromResources(CachingLocaleUrlDefinitionDAO.java:232)[tiles-core-3.0.5.jar!/:3.0.5]
      2. org.apache.tiles.definition.dao.CachingLocaleUrlDefinitionDAO.loadDefinitionsFromResources(CachingLocaleUrlDefinitionDAO.java:203)[tiles-core-3.0.5.jar!/:3.0.5]
      3. org.apache.tiles.definition.dao.CachingLocaleUrlDefinitionDAO.loadDefinitions(CachingLocaleUrlDefinitionDAO.java:192)[tiles-core-3.0.5.jar!/:3.0.5]
      4. org.apache.tiles.definition.dao.ResolvingLocaleUrlDefinitionDAO.loadDefinitions(ResolvingLocaleUrlDefinitionDAO.java:68)[tiles-core-3.0.5.jar!/:3.0.5]
      5. org.apache.tiles.definition.dao.CachingLocaleUrlDefinitionDAO.checkAndloadDefinitions(CachingLocaleUrlDefinitionDAO.java:174)[tiles-core-3.0.5.jar!/:3.0.5]
      6. org.apache.tiles.definition.dao.CachingLocaleUrlDefinitionDAO.getDefinitions(CachingLocaleUrlDefinitionDAO.java:131)[tiles-core-3.0.5.jar!/:3.0.5]
      7. org.apache.tiles.definition.dao.CachingLocaleUrlDefinitionDAO.getDefinition(CachingLocaleUrlDefinitionDAO.java:105)[tiles-core-3.0.5.jar!/:3.0.5]
      8. org.apache.tiles.definition.dao.CachingLocaleUrlDefinitionDAO.getDefinition(CachingLocaleUrlDefinitionDAO.java:49)[tiles-core-3.0.5.jar!/:3.0.5]
      8 frames
    7. Tiles
      UnresolvingLocaleDefinitionsFactory.getDefinition
      1. org.apache.tiles.definition.UnresolvingLocaleDefinitionsFactory.getDefinition(UnresolvingLocaleDefinitionsFactory.java:89)[tiles-core-3.0.5.jar!/:3.0.5]
      1 frame
    8. Tiles - Core Library
      DefinitionRenderer.isRenderable
      1. org.apache.tiles.impl.BasicTilesContainer.getDefinition(BasicTilesContainer.java:286)[tiles-core-3.0.5.jar!/:3.0.5]
      2. org.apache.tiles.impl.BasicTilesContainer.isValidDefinition(BasicTilesContainer.java:273)[tiles-core-3.0.5.jar!/:3.0.5]
      3. org.apache.tiles.renderer.DefinitionRenderer.isRenderable(DefinitionRenderer.java:64)[tiles-core-3.0.5.jar!/:3.0.5]
      3 frames
    9. Spring MVC
      FrameworkServlet.doGet
      1. org.springframework.web.servlet.view.tiles3.TilesView.checkResource(TilesView.java:116)[spring-webmvc-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2. org.springframework.web.servlet.view.UrlBasedViewResolver.loadView(UrlBasedViewResolver.java:509)[spring-webmvc-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      3. org.springframework.web.servlet.view.AbstractCachingViewResolver.createView(AbstractCachingViewResolver.java:244)[spring-webmvc-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      4. org.springframework.web.servlet.view.UrlBasedViewResolver.createView(UrlBasedViewResolver.java:472)[spring-webmvc-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      5. org.springframework.web.servlet.view.AbstractCachingViewResolver.resolveViewName(AbstractCachingViewResolver.java:156)[spring-webmvc-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      6. org.springframework.web.servlet.view.ContentNegotiatingViewResolver.getCandidateViews(ContentNegotiatingViewResolver.java:299)[spring-webmvc-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      7. org.springframework.web.servlet.view.ContentNegotiatingViewResolver.resolveViewName(ContentNegotiatingViewResolver.java:220)[spring-webmvc-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      8. org.springframework.web.servlet.DispatcherServlet.resolveViewName(DispatcherServlet.java:1296)[spring-webmvc-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      9. org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1234)[spring-webmvc-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      10. org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1037)[spring-webmvc-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      11. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:980)[spring-webmvc-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      12. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)[spring-webmvc-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      13. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)[spring-webmvc-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      14. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)[spring-webmvc-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      14 frames
    10. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:622)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      1 frame
    11. Spring MVC
      FrameworkServlet.service
      1. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)[spring-webmvc-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      1 frame
    12. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      1 frame
    13. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      2 frames
    14. Tomcat WS
      WsFilter.doFilter
      1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)[tomcat-embed-websocket-8.5.6.jar!/:8.5.6]
      1 frame
    15. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      2 frames
    16. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)[spring-web-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2 frames
    17. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      2 frames
    18. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:89)[spring-web-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2 frames
    19. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      2 frames
    20. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)[spring-web-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2 frames
    21. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      2 frames
    22. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)[spring-web-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      2 frames
    23. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      2 frames
    24. org.springframework.boot
      ErrorPageFilter$1.doFilterInternal
      1. org.springframework.boot.web.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:115)[spring-boot-1.5.0.RC1.jar!/:1.5.0.RC1]
      2. org.springframework.boot.web.support.ErrorPageFilter.access$000(ErrorPageFilter.java:59)[spring-boot-1.5.0.RC1.jar!/:1.5.0.RC1]
      3. org.springframework.boot.web.support.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:90)[spring-boot-1.5.0.RC1.jar!/:1.5.0.RC1]
      3 frames
    25. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
      1 frame
    26. org.springframework.boot
      ErrorPageFilter.doFilter
      1. org.springframework.boot.web.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:108)[spring-boot-1.5.0.RC1.jar!/:1.5.0.RC1]
      1 frame
    27. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      8. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      9 frames
    28. Grizzly HTTP
      SocketProcessorBase.run
      1. org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      2. org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      3. org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      5. org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      5 frames
    29. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_101]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_101]
      2 frames
    30. Tomcat Util
      TaskThread$WrappingRunnable.run
      1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)[tomcat-embed-core-8.5.6.jar!/:8.5.6]
      1 frame
    31. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[na:1.8.0_101]
      1 frame