Package org.jacorb.config

Examples of org.jacorb.config.ConfigurationException


            factory = createSocketFactory();
        }
        catch( Exception e )
        {
            logger.error("Unable to create SSLSocketFactory!", e);
            throw new ConfigurationException("Unable to create SSLSocketFactory!", e);
        }

        // Andrew T. Finnell / Change made for e-Security Inc. 2002
        // We need to obtain all the cipher suites to use from the
        // properties file.
View Full Code Here


        }
        catch(Exception e)
        {
            logger.warn("Unable to create ServerSocketFactory : {}", e.getMessage (), e);

            throw new ConfigurationException("Unable to create ServerSocketFactory!", e);
        }

        // Andrew T. Finnell
        // We need to obtain all the cipher suites to use from the
        // properties file.
View Full Code Here

                    logger.debug("ImR Listener at " + port + ", " + address);
                }
            }
            catch (Exception e)
            {
                throw new ConfigurationException("Listener: Couldn't init", e);
            }

            this.transport_manager = new TransportManager();
            this.transport_manager.configure(configuration);
        }
View Full Code Here

            Registration _registration = null;

            _registration =
                RegistrationHelper.narrow( orb.resolve_initial_references("ImplementationRepository"));
            if( _registration == null )
                throw new ConfigurationException("ImR not found");

            POA poa = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
            poa.the_POAManager().activate();

            ServerStartupDaemon ssd =
                ServerStartupDaemonHelper.narrow(poa.servant_to_reference(this));

            HostInfo _me = new HostInfo(InetAddress.getLocalHost().getHostName(),
                                        ssd,
                                        orb.object_to_string(ssd));

            _registration.register_host(_me);
        }
        catch (Exception e)
        {
            throw new ConfigurationException("Caught Exception", e);
        }

        stdout_pool = new ThreadPool( (org.jacorb.config.Configuration)myConfiguration, null,
                                      new OutputForwarderFactory( new InputStreamSelector(){
                                            public InputStream getInputStream( Process p )
View Full Code Here

            sasContext = (ISASContext)c.newInstance();
        }
        catch (IllegalArgumentException e)
        {
            logger.error ("Caught ", e);
            throw new ConfigurationException ("Could not load SAS context class " + contextClass);
        }
        catch (ClassNotFoundException e)
        {
            logger.error ("Caught ", e);
            throw new ConfigurationException ("Could not load SAS context class " + contextClass);
        }
        catch (InstantiationException e)
        {
            logger.error ("Caught ", e);
            throw new ConfigurationException ("Could not load SAS context class " + contextClass);
        }
        catch (IllegalAccessException e)
        {
            logger.error ("Caught ", e);
            throw new ConfigurationException ("Could not load SAS context class " + contextClass);
        }

        sasContext.configure(configuration);
        sasContext.initTarget();
    }
View Full Code Here

                    org.jacorb.util.ObjectUtil.classForName(className).newInstance();
                addRequestQueueListener(rql);
            }
            catch (Exception ex)
            {
                throw new ConfigurationException ("could not instantiate queue listener",
                                                  ex);
            }
        }

        configured = true;
View Full Code Here

        threadPoolMin =
            configuration.getAttributeAsInteger("jacorb.poa.thread_pool_min", 5);

        if (threadPoolMin < 1)
        {
            throw new ConfigurationException("jacorb.poa.thread_pool_min must be >= 1");
        }

        threadPoolMax =
            configuration.getAttributeAsInteger("jacorb.poa.thread_pool_max", 20);

        if (threadPoolMax < threadPoolMin)
        {
            throw new ConfigurationException("jacorb.poa.thread_pool_max must be >= " + threadPoolMin + "(jacorb.poa.thread_pool_min)" );
        }

        boolean poolsShouldBeShared = configuration.getAttributeAsBoolean("jacorb.poa.thread_pool_shared", false);

        poolThreadTimeout = configuration.getAttributeAsInteger ("jacorb.poa.threadtimeout", 0);
View Full Code Here

        useTaoIMR =
            configuration.getAttributeAsBoolean("jacorb.use_tao_imr", false);

        if (useTaoIMR && useIMR)
        {
            throw new ConfigurationException ("Ambiguous ImR property settings: jacorb.use_tao_imr and jacorb.use_imr are both true");
        }

        String host =
            configuration.getAttribute("jacorb.imr.ior_proxy_host", null);
        int port =
View Full Code Here

                    selectorManager.start ();
                    timer_queue = new TimerQueue(selectorManager);
                }
                catch (Exception e)
                {
                    throw new ConfigurationException ("SelectorManager initialization failed", e);
                }
            }

            transport_manager = new TransportManager();
View Full Code Here

    @Override
    public void configure(Configuration configuration) throws ConfigurationException {
        // get the configured security domain name.
        String securityDomain = configuration.getAttribute(JacORBSubsystemConstants.SECURITY_SECURITY_DOMAIN);
        if (securityDomain == null)
            throw new ConfigurationException("Error configuring domain server socket factory: security domain is null");

        // use the security domain name to obtain the JSSE security domain.
        try {
            InitialContext context = new InitialContext();
            this.jsseSecurityDomain = (JSSESecurityDomain) context.lookup(SecurityConstants.JAAS_CONTEXT_ROOT +
                    securityDomain + "/jsse");
            log.debugf("Obtained JSSE security domain with name %s", securityDomain);
        } catch (NamingException ne) {
            log.errorf("Failed to obtain JSSE security domain with name %s", securityDomain);
        }
        if (this.jsseSecurityDomain == null)
            throw new ConfigurationException("Error configuring domain server socket factory: failed to lookup JSSE security domain");

        // check if mutual auth is requested or required.
        String optionName = PropertiesMap.JACORB_PROPS_MAP.get(JacORBSubsystemConstants.SECURITY_SERVER_SUPPORTS);
        short serverSupportedOptions = Short.parseShort(configuration.getAttribute(optionName), 16); // value is hexadecimal.
        optionName = PropertiesMap.JACORB_PROPS_MAP.get(JacORBSubsystemConstants.SECURITY_SERVER_REQUIRES);
View Full Code Here

TOP

Related Classes of org.jacorb.config.ConfigurationException

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.