When running my batch program based on jackrabbit-standalone-2.6-0.jar to maintain a jackrabbit repository I always get the logfile "jackrabbit.log_IS_UNDEFINED". I found several hints but couldn't fix my problem yet. The entries I found suggest to configure a logger. I would like to use a configurationFile and configure the logger by "DOMConfigurator.configure" (xml-file) or "PropertyConfigurator.configure" (properties file). But these Classes are not contained in the jackrabbit-standalone-2.6.0.jar. When inspecting the jar I can only find some slf4j-packages (org.slf4j, org.slf4j.helpers, org.slf4j.impl, org.slf4j.spi). So there seems not to be any logging framework. But when adding slf4j-log4j12-1.7.2.jar (from the slf4j-distribution file) to the classpath, I get the message: SLF4J: Found binding in [jar:file:/D:/Anwendungen/EclipsePlugins/Jackrabbit/jackrabbit-standalone-2.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/D:/Anwendungen/EclipsePlugins/slf4j-1.7.2/slf4j-1.7.2/slf4j-log4j12-1.7.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
I've added the folder containing the xml-file "log4j.xml" to the classpath,; I've created a jar from the xml-file and added it to the classpath nothing helped to automatically configure the logger. So automatic initialization doesn't work and there no opportunity to run a routine to do so. Any suggesttion is welcome. my log4j.xml-file: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <appender name="Console" class="org.apache.log4j.ConsoleAppender"> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d %-5p [%c{1}] %m %n" /> </layout> </appender> <root> <priority value="info" /> <appender-ref ref="Console" /> </root> </log4j:configuration> Ulrich