Examples of TldConfig


Examples of org.apache.catalina.startup.TldConfig

                if (TldConfig.getScanParentTldListener() == false)
                    isJsfApplication = isJsfServletDefined();
                // END SJSAS 8.1 5049111
              
                // Read tldListeners. XXX  Option to disable               
                TldConfig tldConfig = new TldConfig();
                tldConfig.setContext(this);

                // (1)  check if the attribute has been defined
                //      on the context element.
                tldConfig.setTldValidation(tldValidation);
                tldConfig.setTldNamespaceAware(tldNamespaceAware);

                // (2) if the attribute wasn't defined on the context
                //     try the host.
                if (!tldValidation){
                    tldConfig.setTldValidation
                        (((StandardHost) getParent()).getXmlValidation());
                }

                try {
                    tldConfig.execute();
                } catch (Exception ex) {
                    log.error(sm.getString("standardContext.tldConfig"), ex);
                    //ok=false;
                }
               
View Full Code Here

Examples of org.apache.catalina.startup.TldConfig

    @Override
    protected void initInternal() throws LifecycleException {
        super.initInternal();
       
        if (processTlds) {
            this.addLifecycleListener(new TldConfig());
        }

        // Register the naming resources
        if (namingResources != null) {
            namingResources.init();
View Full Code Here

Examples of org.apache.catalina.startup.TldConfig

                // if any
                if (pipeline instanceof Lifecycle)
                    ((Lifecycle) pipeline).start();

                // Read tldListeners. XXX Option to disable
                TldConfig tldConfig = new TldConfig();
                tldConfig.setContext(this);
                try {
                    tldConfig.execute();
                } catch (Exception ex) {
                    log.error("Error reading tld listeners "
                              + ex.toString(), ex);
                    //ok=false;
                }
View Full Code Here

Examples of org.apache.catalina.startup.TldConfig

     * Processes TLDs.
     *
     * @throws LifecycleException If an error occurs
     */
     protected void processTlds() throws LifecycleException {
       TldConfig tldConfig = new TldConfig();
       tldConfig.setContext(this);

       // (1)  check if the attribute has been defined
       //      on the context element.
       tldConfig.setTldValidation(tldValidation);
       tldConfig.setTldNamespaceAware(tldNamespaceAware);

       // (2) if the attribute wasn't defined on the context
       //     try the host.
       if (!tldValidation) {
         tldConfig.setTldValidation
           (((StandardHost) getParent()).getXmlValidation());
       }

       if (!tldNamespaceAware) {
         tldConfig.setTldNamespaceAware
           (((StandardHost) getParent()).getXmlNamespaceAware());
       }
                   
       try {
         tldConfig.execute();
       } catch (Exception ex) {
         log.error("Error reading tld listeners "
                    + ex.toString(), ex);
       }
     }
View Full Code Here

Examples of org.apache.catalina.startup.TldConfig

     * Processes TLDs.
     *
     * @throws LifecycleException If an error occurs
     */
     protected void processTlds() throws LifecycleException {
       TldConfig tldConfig = new TldConfig();
       tldConfig.setContext(this);

       // (1)  check if the attribute has been defined
       //      on the context element.
       tldConfig.setTldValidation(tldValidation);
       tldConfig.setTldNamespaceAware(tldNamespaceAware);

       // (2) if the attribute wasn't defined on the context
       //     try the host.
       if (!tldValidation) {
         tldConfig.setTldValidation
           (((StandardHost) getParent()).getXmlValidation());
       }

       if (!tldNamespaceAware) {
         tldConfig.setTldNamespaceAware
           (((StandardHost) getParent()).getXmlNamespaceAware());
       }
                   
       try {
         tldConfig.execute();
       } catch (Exception ex) {
         log.error("Error reading tld listeners "
                    + ex.toString(), ex);
       }
     }
View Full Code Here

Examples of org.apache.catalina.startup.TldConfig

    @Override
    protected void initInternal() throws LifecycleException {
        super.initInternal();
       
        if (processTlds) {
            this.addLifecycleListener(new TldConfig());
        }

        // Register the naming resources
        if (namingResources != null) {
            onameNamingResources = register(namingResources,
View Full Code Here

Examples of org.apache.catalina.startup.TldConfig

            final String cbName = callback.getClass().getName();
            if (cbName.equals(tldConfig.getDeclaringClass().getName())) {
                ensureServerTldsScanned();
                try {
                    final TldConfig config;
                    try {
                        config = (TldConfig) tldConfig.get(callback);
                    } catch (final IllegalAccessException e) {
                        throw new OpenEJBException("scan with default algo");
                    }

                    final Set<URL> urls = TldScanner.scan(classLoader != null ? classLoader : context.getClassLoader());
                    for (final URL url : urls) {
                        if (!SERVER_URLS.contains(url)) {
                            tldConfig(config, url);
                        }
                    }

                    // add already scanned ones
                    for (final String uri : TAG_LIB_URIS) {
                        config.addTaglibUri(uri);
                    }
                    for (final String listener : LISTENERS) {
                        if (!"org.apache.myfaces.webapp.StartupServletContextListener".equals(listener)) { // done elsewhere
                            config.addApplicationListener(listener);
                        }
                    }
                } catch (final OpenEJBException oe) {
                    log.error(oe.getMessage(), oe);
                }
View Full Code Here

Examples of org.apache.catalina.startup.TldConfig

    @Override
    protected void initInternal() throws LifecycleException {
        super.initInternal();
       
        if (processTlds) {
            this.addLifecycleListener(new TldConfig());
        }

        // Register the naming resources
        if (namingResources != null) {
            onameNamingResources = register(namingResources,
View Full Code Here

Examples of org.apache.catalina.startup.TldConfig

                // if any
                if (pipeline instanceof Lifecycle)
                    ((Lifecycle) pipeline).start();

                // Read tldListeners. XXX Option to disable
                TldConfig tldConfig = new TldConfig();
                tldConfig.setContext(this);
                tldConfig.setXmlValidation(((StandardHost) getParent()).getXmlValidation());
                tldConfig.setXmlNamespaceAware(((StandardHost) getParent()).getXmlNamespaceAware());
                try {
                    tldConfig.execute();
                } catch (Exception ex) {
                    log.error("Error reading tld listeners "
                              + ex.toString(), ex);
                    //ok=false;
                }
View Full Code Here

Examples of org.apache.catalina.startup.TldConfig

                // if any
                if (pipeline instanceof Lifecycle)
                    ((Lifecycle) pipeline).start();

                // Read tldListeners. XXX Option to disable
                TldConfig tldConfig = new TldConfig();
                tldConfig.setContext(this);
                tldConfig.setXmlValidation
                    (((StandardHost) getParent()).getXmlValidation());
                tldConfig.setXmlNamespaceAware
                    (((StandardHost) getParent()).getXmlNamespaceAware());
                try {
                    tldConfig.execute();
                } catch (Exception ex) {
                    log.error("Error reading tld listeners "
                              + ex.toString(), ex);
                    //ok=false;
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.