jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Malzer Ferdinand OSP sIT <Ferdinand.Mal...@s-itsolutions.at>
Subject AW: How to suppress file "jackrabbit.log_IS_UNDEFINED"
Date Tue, 09 Apr 2013 08:40:01 GMT
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.
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
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
SLF4J: Found binding in

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" />

        <priority value="info" />
        <appender-ref ref="Console" />

View raw message