Examples of BusException


Examples of org.apache.cxf.BusException

            if (initialExtensions == null || initialExtensions.size() == 0) {
                initialExtensions = PropertiesLoaderUtils.loadAllProperties(resource,
                    Thread.currentThread().getContextClassLoader());
            }
        } catch (IOException ex) {
            throw new BusException(ex);
        }

        for (Iterator<?> it = initialExtensions.keySet().iterator(); it.hasNext();) {
            StringTokenizer st = new StringTokenizer(initialExtensions.getProperty((String) it.next()), "=");
            String parentType = st.nextToken();
View Full Code Here

Examples of org.apache.cxf.BusException

                Context ejbContext = getInitialContext(props);

                if (ejbContext == null) {
                    Message mg = new Message("Can't get InitialContext", LOG);
                    throw new BusException(mg);
                }

                EJBHome home = getEJBHome(ejbContext, jndiLookup);

//                 ejbHomeClassLoader = home.getClass().getClassLoader();

                Method createMethod = home.getClass().getMethod("create", new Class[0]);

                ejb = (EJBObject) createMethod.invoke(home, new Object[0]);
               
            } catch (NamingException e) {
                throw new BusException(e);
            } catch (NoSuchMethodException e) {
                throw new BusException(e);
            } catch (IllegalAccessException e) {
                throw new BusException(e);
            } catch (InvocationTargetException itex) {
                Throwable thrownException = itex.getTargetException();
                throw new BusException(thrownException);
            }
        }

        return ejb;
    }
View Full Code Here

Examples of org.apache.cxf.BusException

    }
   
    public BindingFactory getBindingFactory(String namespace) throws BusException {
        BindingFactory factory = bindingFactories.get(namespace);
        if (null == factory) {
            throw new BusException(new Message("NO_BINDING_FACTORY_EXC", BUNDLE, namespace));
        }
        return factory;
    }
View Full Code Here

Examples of org.objectweb.celtix.BusException

                ResourceResolver rr = clz.newInstance();
                resolvers.add(rr);
            }
        } catch (Exception ex) {
            throw new BusException(ex);
        }
    }
View Full Code Here

Examples of org.objectweb.celtix.BusException

        bus = b;
        try {
            factory = WSDLFactory.newInstance();
            registry = factory.newPopulatedExtensionRegistry();
        } catch (WSDLException e) {
            throw new BusException(e);
        }
        definitionsMap = new WeakHashMap<Object, Definition>();
        // null check for the unit test
        if (bus != null) {
            bus.sendEvent(new ComponentCreatedEvent(this));
View Full Code Here

Examples of org.objectweb.celtix.BusException

            factory.init(bus);
            for (String namespace : namespaces) {
                registerTransportFactory(namespace, factory);
            }
        } catch (ClassNotFoundException e) {
            throw new BusException(e);
        } catch (InstantiationException e) {
            throw new BusException(e);
        } catch (IllegalAccessException e) {
            throw new BusException(e);
        }
    }
View Full Code Here

Examples of org.objectweb.celtix.BusException

            for (String namespace : namespaceURIs) {
                registerBinding(namespace, factory);
            }
        } catch (ClassNotFoundException cnfe) {
            throw new BusException(cnfe);
        } catch (InstantiationException ie) {
            throw new BusException(ie);
        } catch (IllegalAccessException iae) {
            throw new BusException(iae);
        }
    }
View Full Code Here

Examples of org.objectweb.celtix.BusException

        // apply all changes to configuration and metadata and (re-)activate
        try {
            String address = getAddressFromContext(serverContext);
            if (!isContextBindingCompatible(address)) {
                throw new IllegalArgumentException(
                    new BusException(new Message("BINDING_INCOMPATIBLE_CONTEXT_EXC", LOG)));
            }
            publish(address);
        } catch (Exception ex) {
            throw new WebServiceException(ex);
        }  
View Full Code Here

Examples of org.objectweb.celtix.BusException

            bindingId = SOAPBinding.SOAP11HTTP_BINDING;
        }
       
        BindingFactory factory = bus.getBindingManager().getBindingFactory(bindingId);
        if (null == factory) {
            throw new BusException(new Message("BINDING_FACTORY_MISSING_EXC", LOG, bindingId));
        }
        ServerBinding bindingImpl = factory.createServerBinding(reference, this);
        assert null != bindingImpl;
        return bindingImpl;
View Full Code Here

Examples of org.objectweb.celtix.BusException

        cache = eventCache;
    }

    public void addListener(BusEventListener l, BusEventFilter filter) throws BusException {
        if (l == null) {
            throw new BusException(new Message("Listener can't be null", LOG));
        }

        synchronized (listenerList) {
            listenerList.add(new BusEventListenerInfo(l, filter));
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.