remm        2005/08/25 07:55:55

  Modified:    jasper2/src/share/org/apache/jasper
                        JspCompilationContext.java
  Log:
  - Add debug logging for compiler loading CL failures.
  
  Revision  Changes    Path
  1.57      +7 -3      
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspCompilationContext.java
  
  Index: JspCompilationContext.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspCompilationContext.java,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -u -r1.56 -r1.57
  --- JspCompilationContext.java        25 Aug 2005 12:36:32 -0000      1.56
  +++ JspCompilationContext.java        25 Aug 2005 14:55:55 -0000      1.57
  @@ -51,6 +51,9 @@
    */
   public class JspCompilationContext {
   
  +    protected org.apache.commons.logging.Log log =
  +        
org.apache.commons.logging.LogFactory.getLog(JspCompilationContext.class);
  +
       private Hashtable tagFileJarUrls;
       private boolean isPackagedTagFile;
   
  @@ -224,13 +227,14 @@
           return jspCompiler;
       }
   
  -    private static Compiler createCompiler(String className) {
  +    private Compiler createCompiler(String className) {
           Compiler compiler = null; 
           try {
               compiler = (Compiler) Class.forName(className).newInstance();
           } catch (Throwable t) {
  -            // Log ?
  -            // FIXME: log
  +            if (log.isDebugEnabled()) {
  +                log.debug(Localizer.getMessage("jsp.error.compiler"), t);
  +            }
           }
           return compiler;
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to