public void init() throws IOException { long t1 = System.currentTimeMillis(); if (null != out) { PrintStream outS = new PrintStream(new FileOutputStream(out)); System.setOut(outS); } if (null != err) { PrintStream errS = new PrintStream(new FileOutputStream(err)); System.setErr(errS); } String home = getWorkerEnv().getJkHome(); if (home == null) { // XXX use IntrospectionUtil to find myself this.guessHome(); } home = getWorkerEnv().getJkHome(); if (home == null) { log.info("Can't find home, jk2.properties not loaded"); } if (log.isDebugEnabled()) log.debug("Starting Jk2, base dir= " + home); loadPropertiesFile(); String initHTTPS = (String) props.get("class.initHTTPS"); if ("true".equalsIgnoreCase(initHTTPS)) { initHTTPSUrls(); } long t2 = System.currentTimeMillis(); initTime = t2 - t1; }