How to configure Log4j (using Appenders) logging correctly with Application Server
(Doc ID 1011323.1)
Last updated on OCTOBER 26, 2020
Applies to:Oracle GlassFish Server - Version 8.1 to 9.1 [Release 8.1 to 9.1]
***Checked for relevance on 21-Apr-2014***
Platform : All (Generic)
Version : Application Server 8.x (Verified on SE/EE), also applicable to Application Server version 9.
Primary Issue :
A large Application Server Customer, who is using LOG4J bundled with an
Application, deployed on SJSAS EE 8.1_02 running on Windows 2003,observed the
following below errors :
Error Message 1 :
_ThreadID=<ID>;|log4j:ERROR setFile(null,true) call failed.|#]
_ThreadID=<ID>;| java.io.FileNotFoundException: ..\..\logs\<dir>\<name1>.log
(The system cannot find the path specified)
Error Message 2 :
_ThreadID=10;|log4j:ERROR setFile(null,true) call failed.|#]
_ThreadID=10;| java.io.FileNotFoundException: ..\logs\<dir>\<name2>.log
(No such file or directory)
Eventually the server log size kept on increasing and finally the Application
Server used to Hang. Customer faced this issue again and again even after
repeated killing of Application Server - S/he needed the RCA (Root Cause
Analysis) and resolution/workaround to overcome this issue.
Purpose of Document :
Currently there is NO documentation which describes how to resolve i.e
configure Log4j (using appenders) logging correctly and proven various working
workaround to resolve such Errors.
This Tech Doc is to address that aspect.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!