You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Yi-Xiong Zhou <yz...@arcturusag.com> on 2001/10/26 17:25:03 UTC

How to let tomcat output the stackTrace of an Exception

Hi, 

I got an SQLException in user authentication after tomcat have reconnected
the JDBC Realm. I would like to see the full message of the Exception. How
can I get it? I have set debug="2" in server.xml and still not getting the
full message. Could anyone tell me how to let tomcat print out the full
error message? 

Here is what I got :

2001-10-25 06:27:51 - ContextManager: JDBCRealm: There was an SQLException
while in authenticate: null
2001-10-25 06:27:51 - ContextManager: JDBCRealm: SQLException:
java.sql.SQLException: Io exception: Broken pipe
2001-10-25 06:27:55 - ContextManager: JDBCRealm: The database connection is
null or was found to be closed. Trying to re-open it.
2001-10-25 06:27:55 - ContextManager: JDBCRealm: There was an SQLException
while in authenticate: yzhou
2001-10-25 06:27:55 - ContextManager: JDBCRealm: SQLException:
java.sql.SQLException: invalid arguments in call
2001-10-25 06:27:55 - Ctx(  ): 404 R(  + /css/templates.css + null) null

This error message happens when I am trying to do user logon after the
tomcat had not receive request for a long time (overnight). The logon is a
container managed, FORM based user authentication. 

I am using tomcat 3.3 on linux with jdk 1.3.1

Your helps are greatly appreciated.

Yi-Xiong

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How to let tomcat output the stackTrace of an Exception

Posted by Jayson Yu <yu...@philonline.com>.
Hi,

Hope this helps:

-----snippet---
try {
catch (Exception e)
{
         e.printStackTrace();
}
----snippet---

jayson

At 08:25 AM 10/26/01 -0700, you wrote:
>Hi,
>
>I got an SQLException in user authentication after tomcat have reconnected
>the JDBC Realm. I would like to see the full message of the Exception. How
>can I get it? I have set debug="2" in server.xml and still not getting the
>full message. Could anyone tell me how to let tomcat print out the full
>error message?
>
>Here is what I got :
>
>2001-10-25 06:27:51 - ContextManager: JDBCRealm: There was an SQLException
>while in authenticate: null
>2001-10-25 06:27:51 - ContextManager: JDBCRealm: SQLException:
>java.sql.SQLException: Io exception: Broken pipe
>2001-10-25 06:27:55 - ContextManager: JDBCRealm: The database connection is
>null or was found to be closed. Trying to re-open it.
>2001-10-25 06:27:55 - ContextManager: JDBCRealm: There was an SQLException
>while in authenticate: yzhou
>2001-10-25 06:27:55 - ContextManager: JDBCRealm: SQLException:
>java.sql.SQLException: invalid arguments in call
>2001-10-25 06:27:55 - Ctx(  ): 404 R(  + /css/templates.css + null) null
>
>This error message happens when I am trying to do user logon after the
>tomcat had not receive request for a long time (overnight). The logon is a
>container managed, FORM based user authentication.
>
>I am using tomcat 3.3 on linux with jdk 1.3.1
>
>Your helps are greatly appreciated.
>
>Yi-Xiong
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>