Examples of StringManagerBase


Examples of com.sun.enterprise.util.i18n.StringManagerBase

     * launcher (PELaucnhFilter) does not appear in server.log, so for now, this
     * will be considered a fatal error.
     */
    protected void fatalError(String message, String path) {
        getLogger().log(Level.SEVERE, message, new Object[] {path});
        StringManagerBase sm = StringManagerBase.getStringManager(getLogger().getResourceBundleName());       
        throw new RuntimeException(sm.getString(message, path));
    }
View Full Code Here

Examples of com.sun.enterprise.util.i18n.StringManagerBase

       
        public void run() {           
            try {
                _status = getRuntimeStatus(_serverName);
            } catch (InstanceException ex) {
                StringManagerBase sm = StringManagerBase.getStringManager(
                    getLogger().getResourceBundleName());        
                getLogger().log(Level.WARNING,
                    sm.getString("eeadmin.listInstances.Exception", _serverName), ex);
                _status = new RuntimeStatus(_serverName);
            }           
        }
View Full Code Here

Examples of com.sun.enterprise.util.i18n.StringManagerBase

        public void run() {
            try {
                _status = getRuntimeStatus(_agentName);
            } catch (AgentException ex) {
                StringManagerBase sm = StringManagerBase.getStringManager(
                    getLogger().getResourceBundleName());
                getLogger().log(Level.WARNING,
                    sm.getString("nodeagent.listNodeAgents.Exception", _agentName), ex);
                _status = new RuntimeStatus();
            }
        }
View Full Code Here

Examples of com.sun.enterprise.util.i18n.StringManagerBase

            NodeAgentsConfigBean ncb = getNodeAgentsConfigBean();
            if (ncb.isRunning(agentName)) {
                if (isRunning(serverName)) {
                    // WBN January 2007 Issue 726
                    // This is now OFFICIALLY not an error.  Log it and return
                    StringManagerBase sm = StringManagerBase.getStringManager(
                        getLogger().getResourceBundleName());        
                    getLogger().log(Level.WARNING,
                        sm.getString("eeadmin.already.running", serverName));
                    return;
                } else {
                    String installRoot = System.getProperty(
                    SystemPropertyConstants.INSTALL_ROOT_PROPERTY);
                    String instanceRoot = System.getProperty(
View Full Code Here

Examples of com.sun.enterprise.util.i18n.StringManagerBase

        } catch (Exception ex) {               
            try {
                deleteServerInstance(serverName);
            } catch (Exception ex2) {
                //Log         
                StringManagerBase sm = StringManagerBase.getStringManager(getLogger().getResourceBundleName());           
                getLogger().log(Level.WARNING,
                   sm.getString("eeadmin.createServerInstance.Exception", serverName), ex2);
            }
            throw (ex);
        }
        return portsInUse;
    }
View Full Code Here

Examples of com.sun.enterprise.util.i18n.StringManagerBase

                    server.addSystemProperty((SystemProperty)removedProperties.get(i),
                        OVERWRITE);
                }
            } catch (Exception ex3) {
                //Log
                StringManagerBase sm = StringManagerBase.getStringManager(
                    getLogger().getResourceBundleName());           
                getLogger().log(Level.WARNING,
                    sm.getString("eeadmin.createProperties.Exception", target.getName()), ex3);                   
            }
            //We do not want to propagate the PortInUseException up. It is a protected
            //class used for internal use only
            if (ex2 instanceof PortInUseException) {
                throw new ConfigException(ex2.getMessage());
View Full Code Here

Examples of com.sun.enterprise.util.i18n.StringManagerBase

            result = new AgentException(ex);
        } else
            level = Level.WARNING;
            result = new AgentException(ex);
        }
        StringManagerBase sm = StringManagerBase.getStringManager(getLogger().getResourceBundleName());           
        getLogger().log(level, sm.getString(messageId, args), ex);        
        return result;
    }
View Full Code Here

Examples of com.sun.enterprise.util.i18n.StringManagerBase

     * launcher (PELaucnhFilter) does not appear in server.log, so for now, this
     * will be considered a fatal error.
     */
    protected void fatalError(String message, String path) {
        InternalLoggerInfo.getLogger().log(Level.SEVERE, message, new Object[] {path});
        StringManagerBase sm = StringManagerBase.getStringManager(InternalLoggerInfo.getLogger().getResourceBundleName(),
                getClass().getClassLoader());       
        throw new RuntimeException(sm.getString(message, path));
    }
View Full Code Here

Examples of com.sun.enterprise.util.i18n.StringManagerBase

     * launcher (PELaucnhFilter) does not appear in server.log, so for now, this
     * will be considered a fatal error.
     */
    protected void fatalError(String message, String path) {
        InternalLoggerInfo.getLogger().log(Level.SEVERE, message, new Object[] {path});
        StringManagerBase sm = StringManagerBase.getStringManager(InternalLoggerInfo.getLogger().getResourceBundleName(),
                getClass().getClassLoader());       
        throw new RuntimeException(sm.getString(message, path));
    }
View Full Code Here

Examples of com.sun.enterprise.util.i18n.StringManagerBase

     * launcher (PELaucnhFilter) does not appear in server.log, so for now, this
     * will be considered a fatal error.
     */
    protected void fatalError(String message, String path) {
        InternalLoggerInfo.getLogger().log(Level.SEVERE, message, new Object[] {path});
        StringManagerBase sm = StringManagerBase.getStringManager(InternalLoggerInfo.getLogger().getResourceBundleName(),
                getClass().getClassLoader());       
        throw new RuntimeException(sm.getString(message, path));
    }
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.