jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From UMAIL <UM...@gmx.de>
Subject Re: AW: How to suppress file "jackrabbit.log_IS_UNDEFINED"
Date Tue, 09 Apr 2013 15:33:12 GMT
It is fixed now. Jackrabbit uses the logging framework 'logback'. I didn't know it before so
I didn't recognize the packages in the jackrabbit-standalone.jar.
To suppress the messages I have added the system property logback.configurationFile referencing
a configuration-XML. A sample can be found here: http://urchin.earth.li/~twic/Notes_on_Jackrabbit_JCR.html

Your suggestion will probably not work. It doesn't matter which binding comes first - slf4j
does not allow for multiple bindings. 

Ulrich



Am 09.04.2013 um 10:40 schrieb Malzer Ferdinand OSP sIT <Ferdinand.Malzer@s-itsolutions.at>:

> Hello,
> Add slf4j-log4j12-1.7.2.jar and slf4j-api-1.7.2.jar to your class-path BEFORE jackrabbit-standalone-2.6.0.jar.
> I think this should work.
> cheers
> ferry malzer
> 
> -----Urspr√ľngliche Nachricht-----
> Von: Ulrich [mailto:Forums@gombers.de] 
> Gesendet: Montag, 08. April 2013 14:34
> An: jackrabbit
> Betreff: How to suppress file "jackrabbit.log_IS_UNDEFINED" [heur]
> 
> 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

Mime
  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message