java.io.FileNotFoundException: tmp/context.xml (No such file or directory)

Spring JIRA | tom quas | 1 decade ago
  1. 0

    FileSystemXmlApplicationContext ctx = new FileSystemXmlApplicationContext( "/tmp/context.xml" ); produces the exception below. '//tmp/context.xml' (double-slash) is a workaround to this problem. Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from file [/home/tom/tmp/context.xml]; nested exception is java.io.FileNotFoundException: tmp/context.xml (No such file or directory) java.io.FileNotFoundException: tmp/context.xml (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.springframework.core.io.FileSystemResource.getInputStream(FileSystemResource.java:85) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:152) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:124) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:140) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:103) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:71) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:87) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:267) at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:82)

    Spring JIRA | 1 decade ago | tom quas
    java.io.FileNotFoundException: tmp/context.xml (No such file or directory)
  2. 0

    FileSystemXmlApplicationContext ctx = new FileSystemXmlApplicationContext( "/tmp/context.xml" ); produces the exception below. '//tmp/context.xml' (double-slash) is a workaround to this problem. Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from file [/home/tom/tmp/context.xml]; nested exception is java.io.FileNotFoundException: tmp/context.xml (No such file or directory) java.io.FileNotFoundException: tmp/context.xml (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.springframework.core.io.FileSystemResource.getInputStream(FileSystemResource.java:85) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:152) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:124) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:140) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:103) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:71) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:87) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:267) at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:82)

    Spring JIRA | 1 decade ago | tom quas
    java.io.FileNotFoundException: tmp/context.xml (No such file or directory)
  3. 0

    Integration test problem with JarCreator

    Google Groups | 9 years ago | mbaril
    java.lang.RuntimeException: can't return input stream
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JDK 6 build fails (again)

    Google Groups | 9 years ago | Mario Scalas
    java.io.FileNotFoundException: /home/mario/.m2/repository/org/springframework/osgi/spring-osgi-annotation/1.0-m3-SNAPSHOT/spring-osgi-annotation-1.0-m3-SNAPSHOT.jar (No such file or directory)
  6. 0

    build error

    Google Groups | 9 years ago | Wouter
    java.io.FileNotFoundException: /home/wouter/.m2/repository/org/ springframework/osgi/spring-osgi-annotation/1.0-m3-SNAPSHOT/spring- osgi-annotation-1.0-m3-SNAPSHOT.jar (No such file or directory)

  1. r1chjames 1 times, last 5 days ago
  2. richard77 1 times, last 2 weeks ago
  3. gehel 2 times, last 2 weeks ago
  4. Kialandei 100 times, last 2 weeks ago
  5. Reich 1 times, last 3 weeks ago
45 more registered users
50 unregistered visitors
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

    tmp/context.xml (No such file or directory)

    at java.io.FileInputStream.open()
  2. Java RT
    FileInputStream.<init>
    1. java.io.FileInputStream.open(Native Method)
    2. java.io.FileInputStream.<init>(FileInputStream.java:106)
    2 frames
  3. Spring Core
    FileSystemResource.getInputStream
    1. org.springframework.core.io.FileSystemResource.getInputStream(FileSystemResource.java:85)
    1 frame
  4. Spring Beans
    AbstractBeanDefinitionReader.loadBeanDefinitions
    1. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:152)
    2. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:124)
    3. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:140)
    3 frames
  5. Spring Context
    FileSystemXmlApplicationContext.<init>
    1. org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:103)
    2. org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:71)
    3. org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:87)
    4. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:267)
    5. org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:82)
    5 frames