Package org.apache.turbine.services

Examples of org.apache.turbine.services.InitializationException


            {
                tm = (Mapper) TurbineFactory.getInstance(mapperClass);
            }
            catch (TurbineException te)
            {
                throw new InitializationException("", te);
            }

            tm.setUseCache(useCache);
            tm.setCacheSize(mapperCacheSize[i]);
            tm.setDefaultProperty(mapperDefaultProperty[i]);
View Full Code Here


        {
            pool = TurbinePool.getService();

            if (pool == null)
            {
                throw new InitializationException("Pull Service requires"
                    + " configured Pool Service!");
            }

            initPullService();
            // Make sure to setInit(true) because Tools may
            // make calls back to the TurbinePull static methods
            // which causes an init loop.
            setInit(true);

            // Do _NOT_ move this before the setInit(true)
            velocity = TurbineVelocity.getService();

            if (velocity != null)
            {
                initPullTools();
            }
            else
            {
                log.info("Velocity Service not configured, skipping pull tools!");
            }
        }
        catch (Exception e)
        {
            throw new InitializationException(
                "TurbinePullService failed to initialize", e);
        }
    }
View Full Code Here

            File testDir = new File(testPath);
            if (!testDir.exists())
            {
                if (!testDir.mkdirs())
                {
                    throw new InitializationException(
                            "Could not create target directory!");
                }
            }
            repoPath = testPath;
            conf.setProperty(UploadService.REPOSITORY_KEY, repoPath);
View Full Code Here

        }
        catch (Exception e)
        {
            log.error("Failed to initialize JDNI contexts!", e);

            throw new InitializationException(
                    "Failed to initialize JDNI contexts!");
        }
    }
View Full Code Here

        }
        catch (Exception e)
        {
            log.error("Failed to initialize JDNI contexts!", e);

            throw new InitializationException(
                    "Failed to initialize JDNI contexts!");
        }
    }
View Full Code Here

            factoryService = (FactoryService) TurbineServices.getInstance().
                    getService(FactoryService.SERVICE_NAME);
        }
        catch (Exception e)
        {
            throw new InitializationException(
                    "Failed to get a Factory object: ", e);
        }

        setInit(true);
    }
View Full Code Here

            registerFactories(AssemblerBrokerService.PAGE_TYPE);
            registerFactories(AssemblerBrokerService.SCHEDULEDJOB_TYPE);
        }
        catch (TurbineException e)
        {
            throw new InitializationException(
                    "AssemblerBrokerService failed to initialize", e);
        }
        setInit(true);
    }
View Full Code Here

            setInit(true);
        }
        catch (Exception e)
        {
            this.logger.error("Exception caught initializing service: ", e);
            throw new InitializationException(
                    "Initializing ACSYaafiComponentService failed", e);
        }
    }
View Full Code Here

    throws InitializationException
    {
        String className = service.getConfiguration().getString(configurationName, null);
        if (null == className)
        {
            throw new InitializationException(configurationName + " implementation configuration not found.");
        }
        try
        {
            return Class.forName(className);
           
        }
        catch (ClassNotFoundException e)
        {
            throw new InitializationException("Could not preload " + className + " implementation class.", e);
        }           
    }
View Full Code Here

            createSession();
        }
        catch(JMSException e)
        {
            logger.error("Failure to intialize service due to JMS Exception.", e);
            throw new InitializationException(e.getMessage(), e);
        }
        catch(Exception e)
        {
            logger.error("Unknown exception caught while trying to initialize messaging service.", e);
            throw new InitializationException(e.getMessage(), e);
        }
    }
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.