archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maria Odea Ching" <och...@apache.org>
Subject Re: [archiva] archiva.log missing?
Date Thu, 17 Jan 2008 01:01:30 GMT
You can get rid of that by setting this environment variable:

export CATALINA_OPTS="-Dappserver.home=$CATALINA_HOME
-Dappserver.base=$CATALINA_HOME"


For more details, please see the "Configure the appserver.base java
property" section in
http://docs.codehaus.org/display/MAVENUSER/Archiva+on+Tomcat

-Deng

On Jan 17, 2008 12:19 AM, Mick Knutson <mickknutson@gmail.com> wrote:

> How do I get rid of this error on Tomcat 5.5.25 running archiva 1.0 WAR:
>
> log4j:ERROR Either File or DatePattern options are not set for appender
> [auditlog].
> log4j:ERROR setFile(null,true) call failed.
> *java.io.FileNotFoundException: /logs/archiva.log (No such file or
> directory)*
>        at java.io.FileOutputStream.openAppend(Native Method)
>        at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
>        at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
>        at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
>        at org.apache.log4j.FileAppender.activateOptions(FileAppender.java
> :151)
>        at org.apache.log4j.DailyRollingFileAppender.activateOptions(
> DailyRollingFileAppender.java:206)
>        at org.apache.log4j.config.PropertySetter.activate(
> PropertySetter.java:247)
>        at org.apache.log4j.xml.DOMConfigurator.parseAppender(
> DOMConfigurator.java:210)
>        at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(
> DOMConfigurator.java:140)
>        at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(
> DOMConfigurator.java:153)
>        at
> org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement
> (DOMConfigurator.java:415)
>        at org.apache.log4j.xml.DOMConfigurator.parseRoot(
> DOMConfigurator.java:384)
>        at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java
> :783)
>        at org.apache.log4j.xml.DOMConfigurator.doConfigure(
> DOMConfigurator.java:666)
>        at org.apache.log4j.xml.DOMConfigurator.doConfigure(
> DOMConfigurator.java:616)
>        at org.apache.log4j.xml.DOMConfigurator.doConfigure(
> DOMConfigurator.java:602)
>        at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(
> OptionConverter.java:460)
>        at org.apache.log4j.LogManager.<clinit>(LogManager.java:113)
>        at org.apache.log4j.Logger.getLogger(Logger.java:85)
>        at org.apache.commons.logging.impl.Log4JLogger.getLogger(
> Log4JLogger.java:229)
>        at org.apache.commons.logging.impl.Log4JLogger.<init>(
> Log4JLogger.java:65)
>
>
>
> --
> Thanks,
> Mick Knutson
>
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/BLiNCMagazine
> http://tahoe.baselogic.com
> ---
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message