Log4J Config#

Glassfish unterstützt im Auslieferungszustand kein Apache Log4J. Das Archiv(info) enthält die Dateien für die Umleitung des Log4J in das Glassfish Logging.

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

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

Eclipse WTP Payara DCEVM Hotswap#

Folgender Anleitung folgen:

Weitere#