Package org.codehaus.loom.interfaces

Examples of org.codehaus.loom.interfaces.LoomException


                    entry.setApplication( null );

                    final String message =
                        REZ.format( "kernel.error.entry.initialize",
                                    entry.getProfile().getMetaData().getName() );
                    throw new LoomException( message, t );
                }

                try
                {
                    ContainerUtil.start( application );
                }
                catch( final Throwable t )
                {
                    final String message =
                        REZ.format( "kernel.error.entry.start",
                                    entry.getProfile().getMetaData().getName() );

                    if( m_addInvalidApplications )
                    {
                        getLogger().warn( message, t );
                    }
                    else
                    {
                        //Initialization failed so clean entry
                        //so invalid instance is not used
                        entry.setApplication( null );

                        throw new LoomException( message, t );
                    }
                }

                entry.setApplication( application );

                // manage application
                try
                {
                    m_applicationManager.register( name, application );
                }
                catch( final Throwable t )
                {
                    final String message =
                        REZ.format( "kernel.error.entry.manage", name );
                    throw new LoomException( message, t );
                }
            }
        }
    }
View Full Code Here


            }
            catch( final Throwable t )
            {
                final String message =
                    REZ.format( "kernel.error.entry.unmanage", name );
                throw new LoomException( message, t );
            }

            shutdown( entry );
        }
    }
View Full Code Here

            final File file = getFileFor( url );
            if( file.isDirectory() )
            {
                final String message =
                    REZ.format( "install.sar-isa-dir.error", name, url );
                throw new LoomException( message );
            }

            //Get Zipfile representing .sar file
            final ZipFile zipFile = new ZipFile( file );
            return installArchive( name, url, file, zipFile );
        }
        catch( final IOException ioe )
        {
            final String message = REZ.format( "bad-zip-file", url );
            throw new LoomException( message, ioe );
        }
        finally
        {
            unlock();
        }
View Full Code Here

        throws LoomException
    {
        if( !url.getProtocol().equals( "file" ) )
        {
            final String message = REZ.format( "install-nonlocal", url );
            throw new LoomException( message );
        }

        File file = new File( url.getFile() );
        file = file.getAbsoluteFile();

        if( !file.exists() )
        {
            final String message = REZ.format( "install-nourl", file );
            throw new LoomException( message );
        }

        return file;
    }
View Full Code Here

            final String message =
                REZ.format( "failed-to-expand",
                            entry.getName(),
                            file,
                            ioe.getMessage() );
            throw new LoomException( message, ioe );
        }
        finally
        {
            IOUtil.shutdownStream( input );
            IOUtil.shutdownStream( output );
View Full Code Here

TOP

Related Classes of org.codehaus.loom.interfaces.LoomException

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.