tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: Problem adding access log valve.
Date Fri, 06 Feb 2004 10:18:27 GMT
Hi Mufaddal,

the accesslogvalve config requires a <Valve /> tag, not a <Logger/> tag.

Check the exception messages carefully, normally they tell you. Also 
check your config against the documentation - I don't think 'timestamp' 
is a valid attribute for <Valve/>

HTH
Adam

On 02/05/2004 11:06 PM Mufaddal Khumri wrote:
> Hi
> 
> I have the following in my server.xml
> 
>       <!-- Define the default virtual host -->
>       <Host name="localhost" debug="0" appBase="webapps"
>        unpackWARs="true" autoDeploy="true">
> 
>         <Logger className="org.apache.catalina.logger.FileLogger"
>                  directory="logs"  prefix="localhost_log." suffix=".txt"
>             timestamp="true"/>
> 
>         <Logger className="org.apache.catalina.valves.AccessLogValve"
>                  directory="logs/acesslogs"
>                  pattern="%a %A %b %B %h %H %l %m %p %q %r %s %S %t %u 
> %U %v"
>                  prefix="access_log." suffix=".txt"
>             timestamp="true"/>
> 
>         <Context path="/mywebapp" docBase="mywebapp" debug="0"
>                  reloadable="true" crossContext="true"/>
> 
>       </Host>
> 
> I added the AccessLogValve above and now Tomcat does not start? What did 
> I do wrong?
> 
> Tomcat works fine if I remove the accessvalvelog i added above.
> 
> Thanks.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


-- 
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message