Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Ant + Log4J

Empfohlene Antworten

Hallo

Ich habe folgendes Problem:

Ich starte über einen Ant Task ein Java Programm. Dieses enthält Logmeldungen. Log4J ist in dem Antfile (build.xml) im Klassenpfad angegeben.

In Eclipse läuft alles ohne Probleme. Die Log Meldungen werden auch ausgegeben.

Wenn ich nun das Antfile von der Kommandozeile aus ausführen will, bekomme ich folgende Fehlermeldung:

main:

[reporttemplatetask] log4j:WARN No appenders could be found for

logger (Classname).

[reporttemplatetask] log4j:WARN Please initialize the log4j system properly.

Ich muss die Log4J Konfigurierungsdatei in den Klassenpfad der build.xml datei einbinden, jedoch weiß ich nicht wie ich das anstellen soll.

Könnte mir hierbei jemand helfen. Ich weiß dass das Problem nicht sonderlich gut dargestellt ist. Es ist einfach sehr spezifisch...

Vielleicht hat aber jemand schon das gleiche Problem gehabt und kann mir helfen.

Mit freundlichen Grüßen

So funktionierts bei mir jetzt auch.

Aber wenn ich das AntFile nicht im Eclipse starte, bringt er mir immer noch die meldung.

Wie kann ich die Konfigurierungsdatei in den Klassenpfad einbinden wenn ich kein Eclipse habe ?

Ich weiß, ich hab mein Problem ein bisschen blöd dargestellt...

Ant soll dir nen jarbauen?!?

Du musst in deinem target dafür sorgen, dass das properties File mit ins jar kommt. Hast du das?

Gruß Moha

hat sich erledigt, aber danke für deine mühe.

man hat in der kommandozeile nicht nur "ant" eingeben müssen, sonder die Konfigurierungsdatei mithinzufügen.

also "ant -lib <path>"

trotzdem danke

mit freundlichen grüßen

johnny

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.