Afficher un message
Vieux 17/02/2007, 02h29   #2
Gene De Lisa
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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"


  Réponse avec citation
 
Page generated in 0,05244 seconds with 9 queries