Package com.sun.enterprise.admin.common.exception

Examples of com.sun.enterprise.admin.common.exception.MBeanConfigException


            return convertEnumerationToStringArray(realm.getGroupNames(userName));
        }
        catch(NoSuchUserException nse)
        {
            //String msg =  localStrings.getString( "admin.server.core.mbean.config.no_such_user", mInstanceName, userName);
            throw new MBeanConfigException(nse.getMessage());
        }
    }
View Full Code Here


            saveInstanceRealmKeyFile(realm);
        }
        catch(BadRealmException bre)
        {
            //String msg =  localStrings.getString( "admin.server.core.mbean.config.bad_realm", mInstanceName);
            throw new MBeanConfigException(bre.getMessage());
        }
        catch(IASSecurityException ise)
        {
            //String msg =  localStrings.getString( "admin.server.core.mbean.config.security_exception", mInstanceName, userName, bre.getMessage());
            throw new MBeanConfigException(ise.getMessage());
        }

    }
View Full Code Here

            saveInstanceRealmKeyFile(realm);
        }
        catch(NoSuchUserException nse)
        {
            //String msg =  localStrings.getString( "admin.server.core.mbean.config.no_such_user", mInstanceName, userName);
            throw new MBeanConfigException(nse.getMessage());
        }
    }
View Full Code Here

            saveInstanceRealmKeyFile(realm);
        }
        catch(BadRealmException bre)
        {
            //String msg =  localStrings.getString( "admin.server.core.mbean.config.bad_realm", mInstanceName);
            throw new MBeanConfigException(bre.getMessage());
        }
        catch(NoSuchUserException nse)
        {
            //String msg =  localStrings.getString( "admin.server.core.mbean.config.no_such_user", mInstanceName, userName);
            throw new MBeanConfigException(nse.getMessage());
        }
        catch(IASSecurityException ise)
        {
            //String msg =  localStrings.getString( "admin.server.core.mbean.config.security_exception", mInstanceName, userName, bre.getMessage());
            throw new MBeanConfigException(ise.getMessage());
        }
    }
View Full Code Here

                e.printStackTrace();
                targetList.add("server");
            }
            return (String[])targetList.toArray(new String[]{});
        }catch(Throwable t) {
            throw new MBeanConfigException(t.getMessage());
        }
    }
View Full Code Here

            }
            catch(ConfigException e)
            {
                //e.printStackTrace();
          String msg = localStrings.getString( "admin.server.core.mbean.config.error_locating_server_node", e.getMessage() );
                throw new MBeanConfigException( msg );
            }
        }
       
        sLogger.log(Level.FINEST, MSG_LOG_CONF_CTX, new Object[] {
                this.getClass().getName(), new Long(configContext.hashCode())});
View Full Code Here

        {
            throw mce;
        }
        catch (Exception e)
        {
            throw new MBeanConfigException(e.getMessage());
        }
       
        initialize(namingInfo);
    }
View Full Code Here

        {
            throw mce;
        }
        catch (Exception e)
        {
            throw new MBeanConfigException(e.getMessage());
        }
       
        initialize(namingInfo);
    }
View Full Code Here

        {
            throw mce;
        }
        catch (Exception e)
        {
            throw new MBeanConfigException(e.getMessage());
        }
       
        initialize(namingInfo);
    }
View Full Code Here

            if(descr.isElement())
            {
                //it looks that now we have no Elements with values
                //value = descr.getNode().getContent();
        String msg = localStrings.getString( "admin.server.core.mbean.config.getattribute_not_implemented_for_xml" );
                throw new MBeanException(new MBeanConfigException( msg ));
            }
            else
            {
                value = bean.getRawAttributeValue(descr.getAttributeName());

                //value = descr.getNode().getRawAttributeValue(descr.getAttributeName());
            }
            sLogger.log(Level.FINEST, MSG_BASE_GOT_ATTRIBUTE, new Object[]{externalName,value, MBeanEasyConfig.convertStringValueToProperType(value, ai.getType())});
            return MBeanEasyConfig.convertStringValueToProperType(value, ai.getType());
        }
        }
        catch (MBeanConfigException e)
        {
      String msg = localStrings.getString( "admin.server.core.mbean.config.getattribute_attribute_exception", externalName, e.getMessage() );
            throw new MBeanException(new MBeanConfigException( msg ));
        }

}
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.common.exception.MBeanConfigException

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.