Package org.apache.turbine.services

Examples of org.apache.turbine.services.InitializationException


                    mapping.loadMapping( is );
                }
                catch (Exception e)
                {
                    logger.error("Error in psml mapping creation",e);
                    throw new InitializationException("Error in mapping",e);
                }
            }
            else
            {
                throw new InitializationException("PSML Mapping not found or not a file or unreadable: "+mapFile);
            }
        }
    }
View Full Code Here


        }
        catch (Throwable t)
        {
            setInit(false);
            t.printStackTrace();
            throw new InitializationException("Unable to initialize HybridRegistryService: " + t.toString());
        }
        setInit(true);       
    }
View Full Code Here

        }
        catch (Throwable t)
        {
            t.printStackTrace();
            logger.error("Failed to load cache for registry: " + registryName, t);
            throw new InitializationException("Unable to initialize HybridRegistryService cache", t);
        }
    }
View Full Code Here

    private void internalInit() throws InitializationException
    {
        ResourceService props = getResources();
        if (props == null)
        {
            throw new InitializationException("LoggingService failed to "
                                              + "get access to the properties for this service.");
        }

        //looking for default logger name
        String defaultLoggerName = props.getString(LoggingConfig.DEFAULT);

        //checking whether default logger is properly configured
        if (defaultLoggerName == null)
        {
            throw new InitializationException("LoggingService can't find "
                                              + "default logger name in the configuration file.");
        }

        // Create default logger
        loggers.put(defaultLoggerName, defaultLogger);

        //checking whether default logger is properly configured
        if (defaultLogger == null)
        {
            throw new InitializationException("LoggingService can't find "
                                              + "default logger in working loggers.");
        }
    }
View Full Code Here

        if (!(data instanceof JetspeedRunData))
        {
            logger.error(
                "[PortalPersistenceService] The current RunData implenetation does not implement the JetspeedRunData interface.");
            setInit(false);
            throw new InitializationException("The current RunData implenetation does not implement the JetspeedRunData interface.");
        }

        super.init(data);
    }   
View Full Code Here

        {

        }
        catch ( Throwable t )
        {
            throw new InitializationException( "Unable to initialize DatabaseRegistryService, missing config keys");
        }

        //Mark that we are done
        setInit(true);
View Full Code Here

                    mapping.loadMapping( is );
                }
                catch (Exception e)
                {
                    logger.error("PSMLManager: Error in psml mapping creation", e);
                    throw new InitializationException("Error in mapping",e);
                }
            }
            else
            {
                throw new InitializationException("PSML Mapping not found or not a file or unreadable: "+mapFile);
            }
        }
    }
View Full Code Here

                    + TemplateLocatorService.SERVICE_NAME
                    + CONFIG_TEMPLATE_ROOT);

        if ((templateRoots == null) || (templateRoots.length == 0))
        {
            throw new InitializationException(MSG_MISSING_PARAMETER + CONFIG_TEMPLATE_ROOT);
        }

        templateMap = new HashMap();

        for (int i = 0; i < templateRoots.length; i++)
View Full Code Here

            loadMapping();
        }
        catch (Throwable t)
        {
            logger.error(this + ".init:" , t);
            throw new InitializationException("Exception initializing DatabasePsmlManagerService" + t);
        }

        if (cachingOn)
        {
            this.refresher = new CacheRefresher();
View Full Code Here

                    mapping.loadMapping( is );
                }
                catch (Exception e)
                {
                    logger.error("Error in psml mapping creation",e);
                    throw new InitializationException("Error in mapping",e);
                }
            }
            else
            {
                throw new InitializationException("PSML Mapping not found or not a file or unreadable: "+mapFile);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.turbine.services.InitializationException

Copyright © 2018 www.massapicom. 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.