public void lifecycleEvent(LifecycleEvent event) {
if (Lifecycle.INIT_EVENT.equals(event.getType())) {
- aprInitialized = initializeAPR();
+ aprInitialized = init();
if (aprInitialized) {
try {
initializeSSL();
} catch (Throwable t) {
- log.error(sm.getString("aprListener.sslInit",
- t.getMessage()), t);
+ if (!log.isDebugEnabled()) {
+ log.info(sm.getString("aprListener.sslInit"));
+ } else {
+ log.debug(sm.getString("aprListener.sslInit"));
+ }
}
}
} else if (Lifecycle.AFTER_STOP_EVENT.equals(event.getType())) {
method.invoke(null, (Object []) null);
}
- private boolean initializeAPR()
+ private boolean init()
{
int major = 0;
int minor = 0;
TCN_RECOMMENDED_PV));
}
}
+ if (!log.isDebugEnabled()) {
+ log.info(sm.getString("aprListener.tcnValid", major + "."
+ + minor + "." + patch));
+ }
+ else {
+ log.debug(sm.getString("aprListener.tcnValid", major + "."
+ + minor + "." + patch));
+ }
return true;
}
aprListener.tcnInvalid=An incompatible version {0} of the Apache Tomcat Native library is installed, while Tomcat requires version {1}
aprListener.tcnVersion=An older version {0} of the Apache Tomcat Native library is installed, while Tomcat recommends version greater then {1}
aprListener.aprDestroy=Failed shutdown of Apache Portable Runtime
-aprListener.sslInit=Unable to initialize the SSLEngine, failed with message: {0}
+aprListener.sslInit=Failed to initialize the SSLEngine.
+aprListener.tcnValid=Apache Tomcat Native library {0} loaded.
containerBase.addDefaultMapper=Exception configuring default mapper of class {0}
containerBase.alreadyStarted=Container {0} has already been started
containerBase.notConfigured=No basic Valve has been configured