Package com.sun.enterprise.admin.event

Examples of com.sun.enterprise.admin.event.AdminEventListenerException


            getWebContainer().loadWebModule(wmInfo, "null");
        if (throwables != null && !throwables.isEmpty()) {
            //we don't have the ability to return all errors.  so return the
            //first one, enough to signal the problem.
            String msg = throwables.get(0).getMessage();
            AdminEventListenerException ex =
                new AdminEventListenerException(msg);
            ex.initCause(throwables.get(0));
            throw ex;
        }
    }
View Full Code Here


                webModule.getName(), webModule.getLocation());
            RoleMapper.removeRoleMapper(app.getRoleMapper().getName());
            wbd = (WebBundleDescriptor) app.getStandaloneBundleDescriptor();
            appName = app.getRegistrationName();
        } catch (ConfigException ce) {
            throw new AdminEventListenerException(ce);
        }           
        String contextRoot = webModule.getContextRoot();      
        String virtualServers = null;
        try {
            virtualServers = ServerBeansFactory
View Full Code Here

            // refreshes the config context with the context from this event
            try {
                getWebModulesManager().refreshConfigContext(config);
            } catch (ConfigException ce) {
                throw new AdminEventListenerException(ce.getMessage());
            }

            // The only job of dummyLoader is to inform the ondemand framework
            // about this module. It does not actually load the app.
            AbstractLoader dummyLoader = getLoader(moduleName);
View Full Code Here

            // refreshes the config context with the context from this event
            try {
                getWebModulesManager().refreshConfigContext(config);
            } catch (ConfigException ce) {
                throw new AdminEventListenerException(ce.getMessage());
            }

            AbstractLoader dummyLoader = getLoader(moduleName);
            dummyLoader.unload(false);
            moduleUndeployed(config, moduleName);
View Full Code Here

                    webModule.getName(), webModule.getLocation());
                wbd =
                    (WebBundleDescriptor) app.getStandaloneBundleDescriptor();
                appName = app.getRegistrationName();
            } catch (ConfigException ce) {
                throw new AdminEventListenerException(ce);
            }
            String contextRoot = webModule.getContextRoot();
            String virtualServers = null;
            try {
                virtualServers = ServerBeansFactory
View Full Code Here

        if ( webModule  == null ) {
            try {
              webModule = (WebModule) ApplicationHelper.findApplication(
                  config, moduleName);
            } catch (ConfigException ce) {
                throw new AdminEventListenerException(ce);
            }
            if (webModule == null) {
                String msg = localStrings.getString(
                    "webmodule.module_not_found",
                    moduleName);
                throw new AdminEventListenerException(msg);
            }
            if (isAddToCache) {
                cachedWebModules.put(moduleName, webModule);
            }
        } else {
View Full Code Here

            ApplicationRef appRef = server.getApplicationRefByRef(moduleName);

            return ((app != null && app.isEnabled()) &&
                        (appRef != null && appRef.isEnabled()));
        } catch (ConfigException e) {
            AdminEventListenerException ex = new AdminEventListenerException();
            ex.initCause(e);
            _logger.log(Level.FINE, "Error in finding " + moduleName, e);

            //If there is anything wrong, do not enable the module
            return false;
        }
View Full Code Here

            ActiveJmsResourceAdapter aja = getAdapter();
            if (aja != null) {
               getAdapter().reloadRA(service);
            }
        } catch (ConnectorRuntimeException cre) {
            AdminEventListenerException ale =
                new AdminEventListenerException(cre.getMessage());
            ale.initCause(cre);
            throw ale;
        } catch (ConfigException ce) {
            AdminEventListenerException ale =
                new AdminEventListenerException(ce.getMessage());
            ale.initCause(ce);
            throw ale;
        }
    }
View Full Code Here

            Server server = ServerBeansFactory.getServerBean(config);
            ApplicationRef appRef = server.getApplicationRefByRef(moduleName);
            return ((app != null && app.isEnabled()) &&
                        (appRef != null && appRef.isEnabled()));
        } catch (ConfigException e) {
            AdminEventListenerException ex = new AdminEventListenerException();
            ex.initCause(e);
            _logger.log(Level.FINE, "Error in finding " + moduleName, e);

            //If there is anything wrong, do not enable the module
            return false;
        }
View Full Code Here

    protected void registerException(BaseDeployEvent event, String msg) {
        AdminEventResult result = AdminEventResult.getAdminEventResult(event);
        result.setResultCode(AdminEventResult.SUCCESS);
        result.addException(event.getEffectiveDestination(),
                            new AdminEventListenerException(msg));
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.event.AdminEventListenerException

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.