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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 "%r" %s %b %T %S %U" |