java.io.FileNotFoundException: c:\log4j2.xml (The system cannot find the file specified)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Girish
, 1 year ago
c:\log4j2.xml (The system cannot find the file specified)
via Stack Overflow by claire
, 10 months ago
via Stack Overflow by anij
, 1 year ago
C:\MyApp.jar!\lib\jackson-databind-2.6.5.jar (The system cannot find the path specified)
via Stack Overflow by Rilfi
, 9 months ago
/sand/application.xgapp (No such file or directory)
via GitHub by Maninandha
, 1 year ago
D:\ANNIEResumeParser.gapp (The system cannot find the file specified)
via Apache's JIRA Issue Tracker by MH, 1 year ago
\PC1\instDir\reports\xml\fonts\LTe50327.ttf (Das System kann den angegebenen Pfad nicht finden)
java.io.FileNotFoundException: c:\log4j2.xml (The system cannot find the file specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at java.io.FileInputStream.(FileInputStream.java:93)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
at java.net.URL.openStream(URL.java:1038)
at org.apache.logging.log4j.core.config.ConfigurationFactory.getInputFromUri(ConfigurationFactory.java:299)
at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:463)
at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:400)
at org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:257)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:565)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:582)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:217)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:152)
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132)
at org.springframework.boot.SpringApplication.(SpringApplication.java:189)
at hello.Application.main(Application.java:11)

Users with the same issue

2 times, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
245 times, 1 year ago
2 times, 7 months ago
Once, 4 months ago
144 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.