/** * Compile (if needed) and load a tag file */ public Class loadTagFile() throws JasperException { try { ctxt.compile(); if (reload) { tagHandlerClass = ctxt.load(); } } catch (FileNotFoundException ex) { throw new JasperException(ex); } return tagHandlerClass; }
/** * Compile (if needed) and load a tag file */ public Class loadTagFile() throws JasperException { try { ctxt.compile(); if (reload) { tagHandlerClass = ctxt.load(); } } catch (FileNotFoundException ex) { log.log(Level.SEVERE, Localizer.getMessage("jsp.error.compiling")); throw new JasperException(ex); } return tagHandlerClass; }
/** * Compile (if needed) and load a tag file */ public Class loadTagFile() throws JasperException { try { ctxt.compile(); if (reload) { tagHandlerClass = ctxt.load(); } } catch (ClassNotFoundException ex) { } catch (FileNotFoundException ex) { log.log(Level.SEVERE, Localizer.getMessage("jsp.error.compiling")); throw new JasperException(ex); } return tagHandlerClass; }
/** * Compile (if needed) and load a tag file */ public Class loadTagFile() throws JasperException { try { ctxt.compile(); if (reload) { tagHandlerClass = ctxt.load(); } } catch (ClassNotFoundException ex) { } catch (FileNotFoundException ex) { log.log(Level.SEVERE, Localizer.getMessage("jsp.error.compiling")); throw new JasperException(ex); } return tagHandlerClass; }
/** * Compile (if needed) and load a tag file */ public Class loadTagFile() throws JasperException { try { ctxt.compile(); if (reload) { tagHandlerClass = ctxt.load(); } } catch (ClassNotFoundException ex) { } catch (FileNotFoundException ex) { log.log(Level.SEVERE, Localizer.getMessage("jsp.error.compiling")); throw new JasperException(ex); } return tagHandlerClass; }
/** * Compile (if needed) and load a tag file */ public Class loadTagFile() throws JasperException { try { ctxt.compile(); if (reload) { tagHandlerClass = ctxt.load(); } } catch (FileNotFoundException ex) { log.log(Level.SEVERE, Localizer.getMessage("jsp.error.compiling")); throw new JasperException(ex); } return tagHandlerClass; }
/** * Compile (if needed) and load a tag file */ public Class loadTagFile() throws JasperException { try { ctxt.compile(); if (reload) { tagHandlerClass = ctxt.load(); } } catch (FileNotFoundException ex) { log.log(Level.SEVERE, Localizer.getMessage("jsp.error.compiling")); throw new JasperException(ex); } return tagHandlerClass; }
ctxt.compile(); } catch (FileNotFoundException ex) { ctxt.incrementRemoved();
/** * Method used by background thread to check the JSP dependencies * registered with this class for JSP's. */ private void checkCompile() { for (JspServletWrapper jsw: jsps.values()) { if (jsw.isTagFile()) { // Skip tag files in background compiliations, since modified // tag files will be recompiled anyway when their client JSP // pages are compiled. This also avoids problems when the // tag files and their clients are not modified simultaneously. continue; } JspCompilationContext ctxt = jsw.getJspEngineContext(); // JspServletWrapper also synchronizes on this when // it detects it has to do a reload synchronized(jsw) { try { ctxt.compile(); } catch (FileNotFoundException ex) { ctxt.incrementRemoved(); } catch (Throwable t) { jsw.getServletContext().log("Background compile failed", t); } } } }
/** * Method used by background thread to check the JSP dependencies * registered with this class for JSP's. */ private void checkCompile() { for (JspServletWrapper jsw: jsps.values()) { if (jsw.isTagFile()) { // Skip tag files in background compiliations, since modified // tag files will be recompiled anyway when their client JSP // pages are compiled. This also avoids problems when the // tag files and their clients are not modified simultaneously. continue; } JspCompilationContext ctxt = jsw.getJspEngineContext(); // JspServletWrapper also synchronizes on this when // it detects it has to do a reload synchronized(jsw) { try { ctxt.compile(); } catch (FileNotFoundException ex) { ctxt.incrementRemoved(); } catch (Throwable t) { jsw.getServletContext().log( Localizer.getMessage("jsp.error.background.compile"), t); } } } }
/** * Compile (if needed) and load a tag file */ public Class loadTagFile() throws JasperException { try { if (ctxt.isRemoved()) { throw new FileNotFoundException(jspUri); } if (options.getDevelopment() || firstTime ) { synchronized (this) { firstTime = false; ctxt.compile(); } } else { if (compileException != null) { throw compileException; } } if (reload) { tagHandlerClass = ctxt.load(); reload = false; } } catch (FileNotFoundException ex) { throw new JasperException(ex); } return tagHandlerClass; }
/** * Method used by background thread to check the JSP dependencies * registered with this class for JSP's. */ private void checkCompile() { for (JspServletWrapper jsw: jsps.values()) { if (jsw.isTagFile()) { // Skip tag files in background compiliations, since modified // tag files will be recompiled anyway when their client JSP // pages are compiled. This also avoids problems when the // tag files and their clients are not modified simultaneously. continue; } JspCompilationContext ctxt = jsw.getJspEngineContext(); // JspServletWrapper also synchronizes on this when // it detects it has to do a reload synchronized(jsw) { try { ctxt.compile(); } catch (FileNotFoundException ex) { ctxt.incrementRemoved(); } catch (Throwable t) { jsw.getServletContext().log( Localizer.getMessage("jsp.error.background.compile"), t); } } } }
/** * Compile (if needed) and load a tag file */ public Class loadTagFile() throws JasperException { try { if (ctxt.isRemoved()) { throw new FileNotFoundException(jspUri); } if (options.getDevelopment() || firstTime ) { synchronized (this) { firstTime = false; ctxt.compile(); } } else { if (compileException != null) { throw compileException; } } if (reload) { tagHandlerClass = ctxt.load(); reload = false; } } catch (FileNotFoundException ex) { throw new JasperException(ex); } return tagHandlerClass; }
/** * Compile (if needed) and load a tag file */ public Class<?> loadTagFile() throws JasperException { try { if (ctxt.isRemoved()) { throw new FileNotFoundException(jspUri); } if (options.getDevelopment() || firstTime ) { synchronized (this) { firstTime = false; ctxt.compile(); } } else { if (compileException != null) { throw compileException; } } if (reload) { tagHandlerClass = ctxt.load(); reload = false; } } catch (FileNotFoundException ex) { throw new JasperException(ex); } return tagHandlerClass; }
/** * Compile (if needed) and load a tag file */ public Class<?> loadTagFile() throws JasperException { try { if (ctxt.isRemoved()) { throw new FileNotFoundException(jspUri); } if (options.getDevelopment() || firstTime ) { synchronized (this) { firstTime = false; ctxt.compile(); } } else { if (compileException != null) { throw compileException; } } if (reload) { tagHandlerClass = ctxt.load(); reload = false; } } catch (FileNotFoundException ex) { throw new JasperException(ex); } return tagHandlerClass; }
/** * Method used by background thread to check the JSP dependencies * registered with this class for JSP's. */ private void checkCompile() { for (JspServletWrapper jsw: jsps.values()) { if (jsw.isTagFile()) { // Skip tag files in background compiliations, since modified // tag files will be recompiled anyway when their client JSP // pages are compiled. This also avoids problems when the // tag files and their clients are not modified simultaneously. continue; } JspCompilationContext ctxt = jsw.getJspEngineContext(); // JspServletWrapper also synchronizes on this when // it detects it has to do a reload synchronized(jsw) { try { ctxt.compile(); } catch (FileNotFoundException ex) { ctxt.incrementRemoved(); } catch (Throwable t) { jsw.getServletContext().log( Localizer.getMessage("jsp.error.background.compile"), t); } } } }
/** * Method used by background thread to check the JSP dependencies * registered with this class for JSP's. */ private void checkCompile() { for (JspServletWrapper jsw: jsps.values()) { if (jsw.isTagFile()) { // Skip tag files in background compiliations, since modified // tag files will be recompiled anyway when their client JSP // pages are compiled. This also avoids problems when the // tag files and their clients are not modified simultaneously. continue; } JspCompilationContext ctxt = jsw.getJspEngineContext(); // JspServletWrapper also synchronizes on this when // it detects it has to do a reload synchronized(jsw) { try { ctxt.compile(); } catch (FileNotFoundException ex) { ctxt.incrementRemoved(); } catch (Throwable t) { jsw.getServletContext().log( Localizer.getMessage("jsp.error.background.compile"), t); } } } }
/** * Method used by background thread to check the JSP dependencies * registered with this class for JSP's. */ private void checkCompile() { for (JspServletWrapper jsw: jsps.values()) { if (jsw.isTagFile()) { // Skip tag files in background compiliations, since modified // tag files will be recompiled anyway when their client JSP // pages are compiled. This also avoids problems when the // tag files and their clients are not modified simultaneously. continue; } JspCompilationContext ctxt = jsw.getJspEngineContext(); // JspServletWrapper also synchronizes on this when // it detects it has to do a reload synchronized(jsw) { try { ctxt.compile(); } catch (FileNotFoundException ex) { ctxt.incrementRemoved(); } catch (Throwable t) { jsw.getServletContext().log( Localizer.getMessage("jsp.error.background.compile"), t); } } } }
/** * Method used by background thread to check the JSP dependencies * registered with this class for JSP's. */ private void checkCompile() { for (JspServletWrapper jsw: jsps.values()) { if (jsw.isTagFile()) { // Skip tag files in background compiliations, since modified // tag files will be recompiled anyway when their client JSP // pages are compiled. This also avoids problems when the // tag files and their clients are not modified simultaneously. continue; } JspCompilationContext ctxt = jsw.getJspEngineContext(); // JspServletWrapper also synchronizes on this when // it detects it has to do a reload synchronized(jsw) { try { ctxt.compile(); } catch (FileNotFoundException ex) { ctxt.incrementRemoved(); } catch (Throwable t) { jsw.getServletContext().log( Localizer.getMessage("jsp.error.background.compile"), t); } } } }
/** * Compile (if needed) and load a tag file */ public Class<?> loadTagFile() throws JasperException { try { if (ctxt.isRemoved()) { throw new FileNotFoundException(jspUri); } if (options.getDevelopment() || firstTime ) { synchronized (this) { firstTime = false; ctxt.compile(); } } else { if (compileException != null) { throw compileException; } } if (reload) { tagHandlerClass = ctxt.load(); reload = false; } } catch (FileNotFoundException ex) { throw new JasperException(ex); } return tagHandlerClass; }