remm        2004/08/17 02:05:50

  Modified:    jasper2/src/share/org/apache/jasper
                        JspCompilationContext.java
  Log:
  - Add missing check.
  - It worked for me because I had removed Ant.
  
  Revision  Changes    Path
  1.50      +8 -6      
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.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- JspCompilationContext.java        16 Aug 2004 23:48:36 -0000      1.49
  +++ JspCompilationContext.java        17 Aug 2004 09:05:50 -0000      1.50
  @@ -202,12 +202,14 @@
               // Log ?
               // FIXME: log
           }
  -        try {
  -            jspCompiler = 
  -                (Compiler) 
Class.forName("org.apache.jasper.compiler.AntCompiler").newInstance();
  -        } catch (Throwable t) {
  -            // Log ?
  -            // FIXME: log
  +        if (jspCompiler == null) {
  +            try {
  +                jspCompiler = 
  +                    (Compiler) 
Class.forName("org.apache.jasper.compiler.AntCompiler").newInstance();
  +            } catch (Throwable t) {
  +                // Log ?
  +                // FIXME: log
  +            }
           }
           jspCompiler.init(this, jsw);
           return jspCompiler;
  
  
  

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

Reply via email to