aspose file tools*
The moose likes Tomcat and the fly likes localhost_access_log. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "localhost_access_log."date".txt has question marks " Watch "localhost_access_log."date".txt has question marks " New topic
Author

localhost_access_log."date".txt has question marks

madhu kannur
Greenhorn

Joined: Jan 06, 2009
Posts: 1
Hello All,

The server.xml looks like this
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="%{Host}i %{User-Agent}i %{Accept}i %{Keep-Alive}i %{Proxy-Connection}i %{Cookie}i" resolveHosts="false"/>

But
localhost_access_log."date".txt log has

???{???Host}i ???{???User-Agent}i ???{???Accept}i ???{???Keep-Alive}i ???{???Proxy-Connection}i ???{???Cookie}i line,


If i change pattern to common, the logs look fine.

Can i know what can be the reason , to display question marks, and why does it work correcttly for common pattern.

Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2712
    
    5

"maddy boy " welcome to Javaranch
please check your private messages for an important administrative matter. You can see them by clicking the My Private Messages link above.


SCJP, SCWCD.
|Asking Good Questions|
 
Consider Paul's rocket mass heater.
 
subject: localhost_access_log."date".txt has question marks
 
Similar Threads
url to login with id and pw
Some (not all!) UTF8 Characters render as "?" only from UNIX server -- works perfectly local (Win)..
Request Object
HTTP response code: 403 on http://translate.google.com/translate_tts?q=hello%20world
HttpUrlConnection: Login works only for first page