Lines 29-34
Link Here
|
29 |
import org.apache.juli.logging.Log; |
29 |
import org.apache.juli.logging.Log; |
30 |
import org.apache.juli.logging.LogFactory; |
30 |
import org.apache.juli.logging.LogFactory; |
31 |
import org.apache.tomcat.jni.Library; |
31 |
import org.apache.tomcat.jni.Library; |
|
|
32 |
import org.apache.tomcat.jni.LibraryNotFoundError; |
32 |
import org.apache.tomcat.jni.SSL; |
33 |
import org.apache.tomcat.jni.SSL; |
33 |
import org.apache.tomcat.util.ExceptionUtils; |
34 |
import org.apache.tomcat.util.ExceptionUtils; |
34 |
import org.apache.tomcat.util.res.StringManager; |
35 |
import org.apache.tomcat.util.res.StringManager; |
Lines 208-215
Link Here
|
208 |
} catch (Throwable t) { |
209 |
} catch (Throwable t) { |
209 |
t = ExceptionUtils.unwrapInvocationTargetException(t); |
210 |
t = ExceptionUtils.unwrapInvocationTargetException(t); |
210 |
ExceptionUtils.handleThrowable(t); |
211 |
ExceptionUtils.handleThrowable(t); |
211 |
initInfoLogMessages.add(sm.getString("aprListener.aprInit", |
212 |
|
212 |
System.getProperty("java.library.path"))); |
213 |
if(t instanceof LibraryNotFoundError){ |
|
|
214 |
log.warn(sm.getString("aprListener.aprNotFound", ((LibraryNotFoundError) t).getName(), System.getProperty("java.library.path"))); |
215 |
if(log.isDebugEnabled()) { |
216 |
log.error(sm.getString("aprListener.aprNotFound", ((LibraryNotFoundError) t).getName(), System.getProperty("java.library.path")), t); |
217 |
} |
218 |
} |
219 |
else if(t instanceof UnsatisfiedLinkError){ |
220 |
log.warn(sm.getString("aprListener.aprFailedToLoad", System.getProperty("java.library.path"))); |
221 |
if(log.isDebugEnabled()) { |
222 |
log.error(sm.getString("aprListener.aprFailedToLoad", System.getProperty("java.library.path")), t); |
223 |
} |
224 |
} |
225 |
else{ |
226 |
initInfoLogMessages.add(sm.getString("aprListener.aprInit", |
227 |
System.getProperty("java.library.path"))); |
228 |
} |
229 |
|
213 |
return; |
230 |
return; |
214 |
} |
231 |
} |
215 |
if (apver < rqver) { |
232 |
if (apver < rqver) { |