Package org.apache.webbeans.exception

Examples of org.apache.webbeans.exception.WebBeansException


            return connection.createSession(false, Session.AUTO_ACKNOWLEDGE).createConsumer(createOrReturnQueueOrTopic());
        }
        catch (JMSException e)
        {
            ensureConnectionClosing(connection);
            throw new WebBeansException("Unable to create jms message producer", e);
        }

    }
View Full Code Here


            }

        }
        catch (JMSException e)
        {
            throw new WebBeansException("Unable to create jms connection", e);
        }

        return null;
    }
View Full Code Here

            }
           
        }
        catch (Exception e)
        {
            throw new WebBeansException("Unable to close JMS resources");
        }
       
    }
View Full Code Here

            dests = null;

        }
        catch (Exception e)
        {
            throw new WebBeansException(e);
        }
    }
View Full Code Here

                object = ((ServletContextEvent) object).getServletContext();
                return (ServletContext)object;
            }
            else
            {
                throw new WebBeansException(WebBeansLoggerFacade.getTokenString(OWBLogConst.EXCEPT_0002));
            }
        }               
       
        throw new IllegalArgumentException("ServletContextEvent object but found null");
    }
View Full Code Here

                                containsEeResource = Boolean.TRUE;
                            }
                            catch(Exception e)
                            {
                                logger.log(Level.SEVERE, WebBeansLoggerFacade.constructMessage(OWBLogConst.ERROR_0025, e, field));
                                throw new WebBeansException(MessageFormat.format(WebBeansLoggerFacade.getTokenString(OWBLogConst.ERROR_0025), field), e);

                            }
                        }
                    }
                }
View Full Code Here

        }
        catch (DocumentException e)
        {
            log.fatal("Unable to read root element of the given input stream", e);
            throw new WebBeansException("Unable to read root element of the given input stream", e);
        }
    }
View Full Code Here

                    annotClazz.getDeclaredMethod("value", new Class[] {});

                }
                catch (SecurityException e)
                {
                    throw new WebBeansException(e);

                }
                catch (NoSuchMethodException e)
                {
                    throw new WebBeansConfigurationException(errorMessage + "Annotation with type : " + annotClazz.getName() + " must have 'value' method");
                }
            }
        }

        /* Check annotation members with name attrs */
        for (String attrName : attrsNames)
        {
            try
            {
                annotClazz.getDeclaredMethod(attrName, new Class[] {});

            }
            catch (SecurityException e)
            {
                throw new WebBeansException(e);

            }
            catch (NoSuchMethodException e)
            {
                throw new WebBeansConfigurationException(errorMessage + "Annotation with type : " + annotClazz.getName() + " does not have member with name : " + attrName);
View Full Code Here

                annotation.setMemberValue(attrName, value);

            }
            catch (SecurityException e)
            {
                throw new WebBeansException(e);

            }
            catch (NoSuchMethodException e)
            {
                throw new WebBeansConfigurationException(errorMessage + "Annotation with type : " + annotClazz.getName() + " does not have member with name : " + attrName);
View Full Code Here

        {
            throw new CreationException(re);
        }
        catch (Exception e)
        {
            throw new WebBeansException(e);
        }
        finally
        {
            ContextFactory.getDependentContext().setActive(false);
        }
View Full Code Here

TOP

Related Classes of org.apache.webbeans.exception.WebBeansException

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.