This page (revision-12) was last changed on 07-Mar-2019 13:07 by Dieter Käppel

This page was created on 23-Sep-2009 07:52 by Dieter Käppel

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
12 07-Mar-2019 13:07 1 KB Dieter Käppel to previous
11 07-Mar-2019 13:07 1 KB Dieter Käppel to previous | to last
10 31-Aug-2011 08:18 1 KB Dieter Käppel to previous | to last
9 31-Aug-2011 08:18 1 KB Dieter Käppel to previous | to last
8 22-Jun-2010 09:18 1 KB Dieter Käppel to previous | to last Glassfish Log4J ==> Glassfish
7 22-Jun-2010 09:17 1 KB Dieter Käppel to previous | to last Glassfish Log4J ==> Glassfish
6 22-Jun-2010 09:17 1 KB Dieter Käppel to previous | to last
5 22-Jun-2010 09:16 1 KB Dieter Käppel to previous | to last
4 14-Jan-2010 17:07 1 KB Dieter Käppel to previous | to last
3 27-Oct-2009 15:29 1 KB Dieter Käppel to previous | to last
2 27-Oct-2009 15:22 189 bytes Dieter Käppel to previous | to last
1 23-Sep-2009 07:52 153 bytes Dieter Käppel to last

Page References

Incoming links Outgoing links
Glassfish ...nobody

Version management

Difference between version and

At line 2 added 24 lines
!Instructions
This procedure describes the steps neccessary to redirect logging from log4j to glassfish logging:
1. Copy log4j-1.2.12.jar from this archive and commons-logging-1.1.jar to /glassfish/lib
2. Create folder /glassfish/lib/log
3. Copy log4j.properties to /glassfish/lib/log
4. Login to http://localhost:4848/ (u:admin p:adminadmin), Application Server -> JVM Settings -> Path Settings -> System Classpath place the following value "C:\<your absolute path>\glassfish\lib\log\". The absolute path is to be used here.
5. Applikation neu starten
After proceeding with this steps, you should see the log4j messages in the glassfish log /glassfish/domains/domain1/logs/server.log
!Anleitung
Diese Anleitung beschreibt die Schritte, die notwendig sind um das Logging von Log4J in das Glassfish-Logging zuzuleiten:
1. log4j-1.2.12.jar und commons-logging-1.1.jar nach /glassfish/lib kopieren
2. Ordner /glassfish/lib/log erzeugen
3. log4j.properties nach /glassfish/lib/log kopieren
4. http://localhost:4848/ aufrufen (u:admin p:adminadmin), Application Server -> JVM Settings -> Path Settings -> System Classpath folgenden Wert eingeben "C:\<PFAD>\glassfish\lib\log\". Es muss der absolute Pfad zum Logverzeichnis eingegeben werden.
5. Applikation neu starten
Nach durchführen dieser Schritte sollten alle Log4J-Messages im Glassfish-Log /glassfish/domains/domain1/logs/server.log erscheinen.
Kommentare? Dieter Käppel, dk@intersult.com