Tomcat 5 Valve not working

This is a discussion on Tomcat 5 Valve not working within the Apache Web Server forums, part of the Web Server and Related Forums category; I am using Tomcat 5.0 (catalina) on my XP. I am trying to track the URL that tomcat is ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-01-2007
tshad
 
Posts: n/a
Default Tomcat 5 Valve not working

I am using Tomcat 5.0 (catalina) on my XP.

I am trying to track the URL that tomcat is handling to see what the actual
URL is.

The logs by default don't show this. I have been trying to set up my valve
to display this as:

<Valve className="org.apache.catalina.valves.AccessLogVal ve"
directory="logs" prefix="localhost_access_log."
suffix=".txt"
pattern="%a %t %D %s %b %U %q %m" resolveHosts="false"/>

But I keep getting an error in the log that says there is no open quote:

SEVERE: Parse Fatal Error at line 344 column 26: Open quote is expected for
attribute "pattern" associated with an element type "Valve".

But there is an open quote there. If I replace the Pattern attribute with:

pattern="common"

It works fine.

How do I get this to work or another option to get the URL that is
requested?

Thanks,

Tom


  #2 (permalink)  
Old 02-17-2007
Gene De Lisa
 
Posts: n/a
Default Re: Tomcat 5 Valve not working

On Feb 1, 12:32 pm, "tshad" <t...@home.com> wrote:
> I am using Tomcat 5.0 (catalina) on my XP.
>
> I am trying to track the URL that tomcat is handling to see what the actual
> URL is.
>
> The logs by default don't show this. I have been trying to set up my valve
> to display this as:
>
> <Valve className="org.apache.catalina.valves.AccessLogVal ve"
> directory="logs" prefix="localhost_access_log."
> suffix=".txt"
> pattern="%a %t %D %s %b %U %q %m" resolveHosts="false"/>
>
> But I keep getting an error in the log that says there is no open quote:
>
> SEVERE: Parse Fatal Error at line 344 column 26: Open quote is expected for
> attribute "pattern" associated with an element type "Valve".
>
> But there is an open quote there. If I replace the Pattern attribute with:
>
> pattern="common"
>
> It works fine.
>
> How do I get this to work or another option to get the URL that is
> requested?
>
> Thanks,
>
> Tom


Try this:

pattern="%h %a %l %u %t &quot;%r&quot; %s %b %T %S %U"


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:47 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0