bundles/org.apache.jasper.glassfish/src/org/apache/jasper/compiler/JspRuntimeContext.java
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);
                }
            }
        }
    }
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);
                }
            }
        }
    }
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.
Method used by background thread to check the JSP dependencies registered with this class for JSP s .