Package org.apache.openejb

Examples of org.apache.openejb.OpenEJBRuntimeException


    private PortAddressRegistry getPortAddressRegistry() {
        if (portAddressRegistry == null) {
            portAddressRegistry = SystemInstance.get().getComponent(PortAddressRegistry.class);
            if (portAddressRegistry == null) {
                throw new OpenEJBRuntimeException("No port address registry, it generally means you either didn't activate cxf or don't use tomee+");
            }
        }
        return portAddressRegistry;
    }
View Full Code Here


            jndiRootContext.bind("openejb/remote/.", "");
            jndiRootContext.bind("openejb/client/.", "");
            jndiRootContext.bind("openejb/Deployment/.", "");
            jndiRootContext.bind("openejb/global/.", "");
        } catch (final NamingException e) {
            throw new OpenEJBRuntimeException("this should not happen", e);
        }
    }
View Full Code Here

                throw new IllegalArgumentException(e);
            }

            clazz = clazz.getSuperclass();
        }
        throw new OpenEJBRuntimeException(new NoSuchFieldException(field));
    }
View Full Code Here

    @Override
    public void beginTransaction(final TransactionalTest test) {
        try {
            lookup(test.getManager()).begin();
        } catch (final Exception e) {
            throw new OpenEJBRuntimeException(e);
        }
    }
View Full Code Here

    @Override
    public void commitTransaction(final TransactionalTest test) {
        try {
            lookup(test.getManager()).commit();
        } catch (final Exception e) {
            throw new OpenEJBRuntimeException(e);
        }
    }
View Full Code Here

    @Override
    public void rollbackTransaction(final TransactionalTest test) {
        try {
            lookup(test.getManager()).rollback();
        } catch (final Exception e) {
            throw new OpenEJBRuntimeException(e);
        }
    }
View Full Code Here

                    next.evaluate();
                } catch (final Throwable throwable) {
                    if (throwable instanceof Exception) {
                        throw (Exception) throwable;
                    }
                    throw new OpenEJBRuntimeException("Failed test evaluation", throwable);
                }
                return null;
            }
        });
    }
View Full Code Here

                                    throw ite.getCause();
                                }
                            }
                        });
                    } catch (final IllegalAccessException e) {
                        throw new OpenEJBRuntimeException(e);
                    }

                } else {
                    final NormalScopeProxyFactory normalScopeProxyFactory = webBeansContext.getNormalScopeProxyFactory();
                    final Class<?> proxyClass = normalScopeProxyFactory.createProxyClass(beanContext.getClassLoader(), beanContext.getBeanClass());
View Full Code Here

    public void beforeInvocation(final IInvokedMethod method, final ITestResult testResult) {
        delegate = new ApplicationComposers(method.getTestMethod().getRealClass());
        try {
            delegate.before(testResult.getInstance());
        } catch (final Exception e) {
            throw new OpenEJBRuntimeException(e);
        }
    }
View Full Code Here

    @Override
    public void afterInvocation(final IInvokedMethod method, final ITestResult testResult) {
        try {
            delegate.after();
        } catch (final Exception e) {
            throw new OpenEJBRuntimeException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.openejb.OpenEJBRuntimeException

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.