tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/request JDBCRealm.java
Date Mon, 04 Dec 2000 18:47:11 GMT
craigmcc    00/12/04 10:47:10

  Modified:    src/doc  Tag: tomcat_32 readme
               src/share/org/apache/tomcat/request Tag: tomcat_32
                        JDBCRealm.java
  Log:
  Add the exception message to the log when a SQLException occurs, to aid
  in debugging the underlying cause of the problem.
  
  Submitted by:	Scott Hamilton <hamilton@grunj.cat.org.au>
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.8.2.10  +4 -1      jakarta-tomcat/src/doc/readme
  
  Index: readme
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/doc/readme,v
  retrieving revision 1.8.2.9
  retrieving revision 1.8.2.10
  diff -u -r1.8.2.9 -r1.8.2.10
  --- readme	2000/12/01 03:00:28	1.8.2.9
  +++ readme	2000/12/04 18:47:05	1.8.2.10
  @@ -1,4 +1,4 @@
  -$Id: readme,v 1.8.2.9 2000/12/01 03:00:28 craigmcc Exp $
  +$Id: readme,v 1.8.2.10 2000/12/04 18:47:05 craigmcc Exp $
   
                               Release Notes for:
                              ====================
  @@ -84,6 +84,9 @@
   - Disallowed requesting JSP pages under the WEB-INF directory
     (/WEB-INF/dummy.jsp).  Previously, only requests for static files
     were being disallowed.
  +
  +- The JDBCRealm request interceptor will now log the description of any
  +  JDBC exception that occurs, to aid in debugging.
   
   
   =============================================================================
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.9.2.3   +2 -0      jakarta-tomcat/src/share/org/apache/tomcat/request/JDBCRealm.java
  
  Index: JDBCRealm.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/request/JDBCRealm.java,v
  retrieving revision 1.9.2.2
  retrieving revision 1.9.2.3
  diff -u -r1.9.2.2 -r1.9.2.3
  --- JDBCRealm.java	2000/11/16 23:52:13	1.9.2.2
  +++ JDBCRealm.java	2000/12/04 18:47:07	1.9.2.3
  @@ -325,6 +325,7 @@
               // Log the problem for posterity
               log(sm.getString("jdbcRealm.authenticateSQLException",
                        username));
  +            log("SQLException: " + ex);
   
               // Clean up the JDBC objects so that they get recreated next time
               if (preparedAuthenticate != null) {
  @@ -393,6 +394,7 @@
             // Next time we will try to get a new connection.
               log(sm.getString("jdbcRealm.getUserRolesSQLException",
                        username));
  +            log("SQLException: " + ex);
               if (preparedRoles != null) {
                   try {
                       preparedRoles.close();
  
  
  

Mime
View raw message