cat.error( "Error running job " + job, e);
log.error( "Error running job " + job, e);
    public static void main( String[] args ) {        BasicConfigurator.configure();        if ( (args.length != 4) && (args.length != 1) ){            cat.error( "Usage: JobRunner <providerurl> <username> <password> <jndiname>" );            cat.error( "Usage: JobRunner <jndiname>" );            return;        }        JobRunner runner = null;        String job = null;        try {            if (args.length == 4) {                String provider    = args[0];                String principal   = args[1];                String credentials = args[2];                job = args[3];                                Properties props = new Properties();                props.setProperty(JNDI_PROVIDER,    provider);                props.setProperty(JNDI_PRINCIPAL,   principal);                props.setProperty(JNDI_CREDENTIALS, credentials);                runner = new JobRunner( props );            } else {                job = args[0];                runner = new JobRunner();            }                        if (job != null) {                runner.runJob(job);            }        }        catch (Exception e) {            cat.error( "Error running job " + job, e);        }    }