Package javax.servlet

Examples of javax.servlet.ServletContext.log()


            output.close();
            context.log("LocalHsqldbConfigurator: database.properties created");
        }
        catch (IOException e)
        {
            context.log("LocalHsqldbConfigurator: failed to create database.properties",e);
        }
    }

    public void contextDestroyed(ServletContextEvent sce)
    {
View Full Code Here


        if (aConfig != null)
            context = aConfig.getServletContext ();

        if (context != null)
            context.log ("ServiceManager: Loading services...");

        Properties props = new Properties ();

        try
        {
View Full Code Here

            props.load (context.getResourceAsStream (aServiceConfigFile));
        }
        catch (IOException exc)
        {
            if (context != null)
                context.log ("ServiceManager: File \"" + aServiceConfigFile + "\" cannot be found or read.");
            throw new Exception("ServiceManager: File \"" + aServiceConfigFile + "\" cannot be found or read.");
        }

        int numAll = 0;
        int numSuccessful = 0;
View Full Code Here

                serviceBase = Class.forName (serviceBaseName);
            }
            catch (ClassNotFoundException exc)
            {
                if (context != null)
                    context.log ("ServiceManager: A service with name " + serviceBaseName + " cannot be found.");

                continue;
            }

            String serviceImplName = props.getString (serviceBaseName);
View Full Code Here

                {
                    // ignore -- we go without properties then
                }

                if (context != null)
                    context.log (StringUtils.nameOf (serviceBase) + " initializing...");

                service.init (aConfig, serviceProps);

                if (context != null)
                    context.log (StringUtils.nameOf (serviceBase) + " done.");
View Full Code Here

                    context.log (StringUtils.nameOf (serviceBase) + " initializing...");

                service.init (aConfig, serviceProps);

                if (context != null)
                    context.log (StringUtils.nameOf (serviceBase) + " done.");
            }
            catch (ClassNotFoundException exc)
            {
                if (context != null)
                    context.log ("ServiceManager: A service implementation with name " + serviceImplName + " cannot be found.", exc);
View Full Code Here

                    context.log (StringUtils.nameOf (serviceBase) + " done.");
            }
            catch (ClassNotFoundException exc)
            {
                if (context != null)
                    context.log ("ServiceManager: A service implementation with name " + serviceImplName + " cannot be found.", exc);

                continue;
            }
            catch (ClassCastException exc)
            {
View Full Code Here

                continue;
            }
            catch (ClassCastException exc)
            {
                if (context != null)
                    context.log ("ServiceManager: Service implementation " + serviceImplName + " is not a service of the required type.", exc);

                continue;
            }
            catch (InstantiationException exc)
            {
View Full Code Here

                continue;
            }
            catch (InstantiationException exc)
            {
                if (context != null)
                    context.log ("ServiceManager: Service implementation " + serviceImplName + " cannot be instantiated.", exc);

                continue;
            }
            catch (Exception exc)
            {
View Full Code Here

                continue;
            }
            catch (Exception exc)
            {
                if (context != null)
                    context.log ("ServiceManager: An unidentified error occurred", exc);

                service = null;
            }

            if (service != null)
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.