Package org.apache.webbeans.exception

Examples of org.apache.webbeans.exception.WebBeansDeploymentException


                    }
                    if (beanClass.getSuperclass().equals(superClass))
                    {
                        InconsistentSpecializationException exception = new InconsistentSpecializationException(superClass.getName()
                                + " is @Specialized by two classes: " + beanClass.getName() + " and " + specializedClass.getName());
                        throw new WebBeansDeploymentException(exception);
                    }
                }
                if (!specialized.getTypes().containsAll(superBean.getTypes()))
                {
                    throw new DefinitionException("@Specialized Class : " + specializedClass.getName()
View Full Code Here


                xmlConfigurator.configure(fis, url.toExternalForm(), scanner);
            }
            catch (IOException e)
            {
                throw new WebBeansDeploymentException("Error configuring: filename: " + url.toExternalForm() , e);
            }
            finally
            {
                if (fis != null)
                {
View Full Code Here

                        if (superClassList.contains(superClass))
                        {
                            // since CDI 1.1 we have to wrap this in a DeploymentException
                            InconsistentSpecializationException exception
                                = new InconsistentSpecializationException(WebBeansLoggerFacade.getTokenString(OWBLogConst.EXCEPT_0005) + superClass.getName());
                            throw new WebBeansDeploymentException(exception);
                        }
                        superClassList.add(superClass);
                        specialClassList.add(specialClass);
                    }
                }
                webBeansContext.getWebBeansUtil().configureSpecializations(specialClassList);
            }


            //configure specialized producer beans.
            webBeansContext.getWebBeansUtil().configureProducerMethodSpecializations();
        }
        catch (DefinitionException e)
        {
            throw e;
        }
        catch (DeploymentException e)
        {
            throw e;
        }
        catch (Exception e)
        {
            throw new WebBeansDeploymentException(e);
        }
       

        logger.fine("Checking Specialization constraints has ended.");
    }
View Full Code Here

                {
                    addBeanXml(new URL(url));
                }
                catch (MalformedURLException e)
                {
                    throw new WebBeansDeploymentException("could not convert to URL: " + url, e);
                }
            }
        }
    }
View Full Code Here

                    }
                    if (beanClass.getSuperclass().equals(superClass))
                    {
                        InconsistentSpecializationException exception = new InconsistentSpecializationException(superClass.getName()
                                + " is @Specialized by two classes: " + beanClass.getName() + " and " + specializedClass.getName());
                        throw new WebBeansDeploymentException(exception);
                    }
                }
                if (!specialized.getTypes().containsAll(superBean.getTypes()))
                {
                    throw new DefinitionException("@Specialized Class : " + specializedClass.getName()
View Full Code Here

                xmlConfigurator.configure(fis, url.toExternalForm(), scanner);
            }
            catch (IOException e)
            {
                throw new WebBeansDeploymentException("Error configuring: filename: " + url.toExternalForm() , e);
            }
            finally
            {
                if (fis != null)
                {
View Full Code Here

                        if (superClassList.contains(superClass))
                        {
                            // since CDI 1.1 we have to wrap this in a DeploymentException
                            InconsistentSpecializationException exception
                                = new InconsistentSpecializationException(WebBeansLoggerFacade.getTokenString(OWBLogConst.EXCEPT_0005) + superClass.getName());
                            throw new WebBeansDeploymentException(exception);
                        }
                        superClassList.add(superClass);
                        specialClassList.add(specialClass);
                    }
                }
                webBeansContext.getWebBeansUtil().configureSpecializations(specialClassList);
            }


            //configure specialized producer beans.
            webBeansContext.getWebBeansUtil().configureProducerMethodSpecializations();
        }
        catch (DefinitionException e)
        {
            throw e;
        }
        catch (DeploymentException e)
        {
            throw e;
        }
        catch (Exception e)
        {
            throw new WebBeansDeploymentException(e);
        }
       

        logger.fine("Checking Specialization constraints has ended.");
    }
View Full Code Here

            // search for all classes
            findBeanClasses(mainBundle, packageAdmin);
        }
        catch(Exception e)
        {
            throw new WebBeansDeploymentException("problem while scanning OSGi bundle", e);
        }
        finally
        {
            mainBundle.getBundleContext().ungetService(reference);
        }
View Full Code Here

                continue;
            }

            if (webBeansXmlFound)
            {
                throw new WebBeansDeploymentException("found more than WEB-INF/beans.xml file!" + webBeansXml);
            }

            logger.info("adding the following WEB-INF/beans.xml URL: " + webBeansXml);
            beanXMLs.add(webBeansXml.toExternalForm());
            webBeansXmlFound = true;
View Full Code Here

                this.xmlConfigurator.configure(fis, fileName, scanner);
            }
            catch (IOException e)
            {
                throw new WebBeansDeploymentException("Error configuring: filename: " + fileName , e);
            }
            finally
            {
                if (fis != null)
                {
View Full Code Here

TOP

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

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.