You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Andreas Hartmann <an...@apache.org> on 2005/04/26 11:32:15 UTC
Crawling and log4j
Hi Lenya devs,
when I run the crawler, it complains that log4j is not properly
initialized:
[java] log4j:WARN No appenders could be found for logger
(org.apache.lenya.search.crawler.CrawlerConfiguration).
[java] log4j:WARN Please initialize the log4j system properly.
What do I have to do?
Thanks in advance,
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Crawling and log4j
Posted by Michael Wechner <mi...@wyona.com>.
Andreas Hartmann wrote:
> Thanks, but unfortunately that didn't change anything ...
> Is the crawler aware of this configuration?
no ;-) I understand now the problem ...
The crawler is based on the classpath defined within
src/webapp/lenya/bin/crawl_and_index.xml
whereas it expects a log4j.properties within the classes directory ...
Michi
>
> -- Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
>
>
--
Michael Wechner
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
michael.wechner@wyona.com michi@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Crawling and log4j
Posted by Andreas Hartmann <an...@apache.org>.
Michael Wechner wrote:
> Andreas Hartmann wrote:
>
>> Hi Lenya devs,
>>
>> when I run the crawler, it complains that log4j is not properly
>> initialized:
>>
>> [java] log4j:WARN No appenders could be found for logger
>> (org.apache.lenya.search.crawler.CrawlerConfiguration).
>> [java] log4j:WARN Please initialize the log4j system properly.
>>
>>
>> What do I have to do?
>
>
>
> actually it should be configured as Wolfgang gave an example:
>
> <!--
> <category
> name="org.apache.lenya.cms.publication.task.PublicationTask"
> additivity="false">
> <priority value="DEBUG"/>
> <appender-ref ref="COCOON_DEFAULT" />
> </category>
> -->
>
> within
>
> src/webapp/WEB-INF/log4j.xconf
Thanks, but unfortunately that didn't change anything ...
Is the crawler aware of this configuration?
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Re[2]: Crawling and log4j
Posted by so...@gmail.com.
On 4/27/05, qMax <qm...@mediasoft.ru> wrote:
> what about log4j.properties i dunno.
I put log4j.properties in the tools/bin directory with
"tools\bin\Index-Publication.BAT":
SET CLASSPATH=.
SET ANT_HOME=C:\apache-lenya-1.2.2\tools
ant ...
I changed CLASSPATH to clear the Tomcat CLASSPATH, but there is no
reason not to change it since everything the indexer needs is handled
by ant.BAT. log4j.properties is loaded from the CLASSPATH, which is
now (just) the tools/bin directory. JAVA_HOME must also be set, but
Lenya would not run if you had a problem there.
"log4j.properties":
log4j.rootLogger=INFO, lucene
log4j.appender.lucene = org.apache.log4j.FileAppender
log4j.appender.lucene.File = lucene.log
log4j.appender.lucene.Append = false
log4j.appender.lucene.layout = org.apache.log4j.PatternLayout
log4j.appender.lucene.layout.ConversionPattern = %d{ABSOLUTE} [%t]
%-5p %-30.30c{2} %x - %m %n
A log file named "lucene.log" is created (or replaced) in the
tools/bin directory (probably because that is where the batch file is
called.
solprovider
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re[2]: Crawling and log4j
Posted by qMax <qm...@mediasoft.ru>.
Tuesday, April 26, 2005, 7:16:17 PM, michael.wechner@wyona.com wrote:
MW> Andreas Hartmann wrote:
MW> actually it should be configured as Wolfgang gave an example:
MW> <!--
MW> <category
MW> name="org.apache.lenya.cms.publication.task.PublicationTask"
additivity="false">>
MW> <priority value="DEBUG"/>
MW> <appender-ref ref="COCOON_DEFAULT" />
MW> </category>
MW> within
MW> src/webapp/WEB-INF/log4j.xconf
IIRC, log4j could be configured BOTH with
log4j.xconf and log4j.properties
log4j.xconf should be referenced from web.xml as init-parameter log4j-config.
but what about log4j.properties i dunno.
--
qMax
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Crawling and log4j
Posted by Michael Wechner <mi...@wyona.com>.
Andreas Hartmann wrote:
> Hi Lenya devs,
>
> when I run the crawler, it complains that log4j is not properly
> initialized:
>
> [java] log4j:WARN No appenders could be found for logger
> (org.apache.lenya.search.crawler.CrawlerConfiguration).
> [java] log4j:WARN Please initialize the log4j system properly.
>
>
> What do I have to do?
actually it should be configured as Wolfgang gave an example:
<!--
<category
name="org.apache.lenya.cms.publication.task.PublicationTask"
additivity="false">
<priority value="DEBUG"/>
<appender-ref ref="COCOON_DEFAULT" />
</category>
-->
within
src/webapp/WEB-INF/log4j.xconf
HTH
Michi
>
> Thanks in advance,
> -- Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
>
>
--
Michael Wechner
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
michael.wechner@wyona.com michi@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org