Package net.sf.jportlet.service

Examples of net.sf.jportlet.service.PortletServiceException


            }
        }
        catch ( Exception e )
        {
            __log.error( "Unexpected error", e );
            throw new PortletServiceException( "Error while initializing PortletServiceFactory", e );
        }
    }
View Full Code Here


        super.init( serviceConfig );

        _datasource = getInitParameter( "datasource" );
        if ( _datasource == null )
        {
            throw new PortletServiceException( "datasource is required" );
        }
    }
View Full Code Here

                {
                    _sessionFactory = _datastore.buildSessionFactory(_hibernateConfig);
                }
                catch( Exception e )
                {
                    throw new PortletServiceException("Unable to create SessionFactory", e);
                }
            }
        }
        return _sessionFactory;
    }
View Full Code Here

        {
            _datastore.storeClass(type);
        }
        catch( Exception e )
        {
            throw new PortletServiceException(e);
        }
    }
View Full Code Here

        super.init( config );

        _jndiSession = getInitParameter( "session" );
        if ( _jndiSession == null )
        {
            throw new PortletServiceException( "session parameter is required" );
        }
    }
View Full Code Here

        {
            Portlet.Mode mode = ( Portlet.Mode ) it.next(  );
            String       path = getInitParameter( mode.toString(  ) );
            if ( path == null )
            {
                throw new PortletServiceException( "No page for mode: " + mode );
            }

            _path.put( mode, "/PORTLET-INF/_jportlet" + path );
        }
    }
View Full Code Here

            {
                ssi = ( SSI ) Class.forName( classname ).newInstance(  );
            }
            catch ( Exception e )
            {
                throw new PortletServiceException( e );
            }

            ssi.init( serviceConfig );

            /* Register the extensions */
 
View Full Code Here

            template.merge( ctx, response.getWriter(  ) );
        }
        catch ( ParseErrorException p )
        {
            _log.error( "Unexpected error", p );
            throw new PortletServiceException( "Error in the template", p );
        }
        catch ( ResourceNotFoundException r )
        {
            _log.error( "Unexpected error", r );
            throw new PortletServiceException( "Template not found: " + path, r );
        }
        catch ( Exception e )
        {
            _log.error( "Unexpected error", e );
            throw new PortletServiceException( e );
        }
    }
View Full Code Here

            _engine = new VelocityEngine(  );
            _engine.init( getProperties( serviceConfig.getServletConfig(  ) ) );
        }
        catch ( Exception e )
        {
            throw new PortletServiceException( e );
        }
    }
View Full Code Here

        ServletConfig servletConfig = serviceConfig.getServletConfig(  );
        InputStream   in = servletConfig.getServletContext(  ).getResourceAsStream( CONFIG_FILENAME );

        if ( in == null )
        {
            throw new PortletServiceException( "File not found: " + CONFIG_FILENAME );
        }

        try
        {
            Properties config = new Properties(  );
            config.load( in );

            boolean  debug = _log.isDebugEnabled(  );
            Iterator it = config.keySet(  ).iterator(  );

            while ( it.hasNext(  ) )
            {
                Object key = it.next(  );
                Object uri = config.get( key );

                if ( debug )
                {
                    _log.debug( "Adding mapping: " + key + "=" + uri );
                }

                _mappings.put( key, uri );
            }
        }
        catch ( Exception e )
        {
            throw new PortletServiceException( e );
        }
    }
View Full Code Here

TOP

Related Classes of net.sf.jportlet.service.PortletServiceException

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.