PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > Tomcat 5 Valve not working
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

Tomcat 5 Valve not working

Réponse
 
LinkBack Outils de la discussion
Vieux 01/02/2007, 17h32   #1
tshad
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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


  Réponse avec citation
Vieux 17/02/2007, 01h29   #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
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 17h07.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09715 seconds with 10 queries