Package org.apache.webbeans.exception

Examples of org.apache.webbeans.exception.WebBeansException


            return connection.createSession(false, Session.AUTO_ACKNOWLEDGE).createConsumer(createOrReturnQueueOrTopic());
        }
        catch (JMSException e)
        {
            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

                        return clazz.getDeclaredField((String)parameters);
                    case METHOD_CLASS_GETDECLAREDFIELDS:
                        return clazz.getDeclaredFields();

                    default:
                        return new WebBeansException("unknown security method: " + method);
                }
            }
            catch (Exception exception)
            {
                return exception;
View Full Code Here

                       
                        try {
                          field.setAccessible(true);
                          field.set(javaEeComponentInstance, object);
                        } catch (Exception e) {
                          throw new WebBeansException(e);
                        }
                    }
                }

                return this;
View Full Code Here

            if (object == null)
            {
                Class<?> clazz = ClassUtil.getClassFromName(singletonName);
                if (clazz == null)
                {
                    throw new WebBeansException("Cannot find class : " + singletonName);
                }
                try
                {
                    object = clazz.newInstance();
                    managerMap.put(classLoader, object);

                }
                catch (InstantiationException e)
                {
                    throw new WebBeansException("Unable to instantiate class : " + singletonName, e);
                }
                catch (IllegalAccessException e)
                {
                    throw new WebBeansException("Illegal access exception in creating instance with class : " + singletonName, e);
                }
            }
        }

        return object;
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

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.