java.io.FileNotFoundException occurs for server.log
Issue
During boot up process, JBoss EAP throws java.io.FileNotFoundException[1], and there is no server.log file in the target directory.
Even creating a server.log manually, JBoss EAP does not write any log to it.
[1]
log4j:ERROR Failed to create directory structure: /var/log/sample_path
log4j error: setFile(null,true) call failed.
java.io.FileNotFoundException: /var/log/sample_path/server.log (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
at java.io.FileOutputStream.<init>(FileOutputStream.java:142)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
Environment
- Red Hat JBoss EAP
- 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
