import java.util.Properties;
import org.apache.catalina.Globals;
-import org.apache.tomcat.util.ExceptionUtils;
/**
is = (new URL(configUrl)).openStream();
}
} catch (Throwable t) {
- // TODO Throws NoClassDefFoundError for ExceptionUtils
- ExceptionUtils.handleThrowable(t);
+ handleThrowable(t);
}
if (is == null) {
File properties = new File(conf, "catalina.properties");
is = new FileInputStream(properties);
} catch (Throwable t) {
- // TODO Throws NoClassDefFoundError for ExceptionUtils
- ExceptionUtils.handleThrowable(t);
+ handleThrowable(t);
}
}
is = CatalinaProperties.class.getResourceAsStream
("/org/apache/catalina/startup/catalina.properties");
} catch (Throwable t) {
- // TODO Throws NoClassDefFoundError for ExceptionUtils
- ExceptionUtils.handleThrowable(t);
+ handleThrowable(t);
}
}
return System.getProperty("catalina.config");
}
+ // Copied from ExceptionUtils since that class is not visible during start
+ private static void handleThrowable(Throwable t) {
+ if (t instanceof ThreadDeath) {
+ throw (ThreadDeath) t;
+ }
+ if (t instanceof VirtualMachineError) {
+ throw (VirtualMachineError) t;
+ }
+ // All other instances of Throwable will be silently swallowed
+ }
}
and Tomcat 7. (markt)
</fix>
<fix>
+ <bug>49865</bug>: Tomcat failed to start if catalina.properties was not
+ present. (markt)
+ </fix>
+ <fix>
<bug>49876</bug>: Fix the generics warnings in the copied Apache Jakarta
BCEL code. Based on a patch by Gábor. (markt)
</fix>