You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by John Cherouvim <jc...@eworx.gr> on 2006/04/03 19:23:42 UTC

Tomcat 5.5.15 in "debug mode"?

Hello

I have a serious problem with Tomcat 5.5.15 on windows 2003 with Java 
1.5.0_06-b05.
Tomcat runs as service in mode jvm (and not mode java, not sure what 
that is but anyway).

Every request on the server gives me this block of debug log on stdout.log
2006-04-03 17:51:36,421 DEBUG [ajp-8009-1] servlet.JspServlet 
(JspServlet.java:247)     - JspEngine --> /bar.jsp
2006-04-03 17:51:36,421 DEBUG [ajp-8009-1] servlet.JspServlet 
(JspServlet.java:248)     -          ServletPath: /bar.jsp
2006-04-03 17:51:36,421 DEBUG [ajp-8009-1] servlet.JspServlet 
(JspServlet.java:249)     -             PathInfo: null
2006-04-03 17:51:36,421 DEBUG [ajp-8009-1] servlet.JspServlet 
(JspServlet.java:250)     -             RealPath: 
d:\jakarta\tomcat\webapps\foo\bar.jsp
2006-04-03 17:51:36,421 DEBUG [ajp-8009-1] servlet.JspServlet 
(JspServlet.java:251)     -           RequestURI: /bar.jsp
2006-04-03 17:51:36,421 DEBUG [ajp-8009-1] servlet.JspServlet 
(JspServlet.java:252)     -          QueryString: null
2006-04-03 17:51:36,421 DEBUG [ajp-8009-1] servlet.JspServlet 
(JspServlet.java:253)     -       Request Params:
2006-04-03 17:51:36,421 DEBUG [ajp-8009-1] servlet.JspServlet 
(JspServlet.java:257)     -          f_submit = true
2006-04-03 17:51:36,421 DEBUG [ajp-8009-1] servlet.JspServlet 
(JspServlet.java:257)     -          foo = I±I²I³


This has a side-effect on my programs which need to use UTF-8 parameters 
from the request object. When I do 
request.setCharacterEncoding("UTF-8"); there is no effect because 
someone else (the logger probably) has already accessed the request 
parameters, without of course setting any character encoding.

How can I fix this? I've managed to set Tomcat not to log all these 
stuff by setting the level to ERROR, but I'm sure that the process of 
the parameters is happening inside because the request parameters have 
already been accessed.

thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 5.5.15 in "debug mode"?

Posted by Mark Thomas <me...@virgin.net>.
When starting a new thread (i.e. sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.

This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-user-owner



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org