title: Is there a way to prevent Tomcat from crashing when a loaded JNI library corrupts memory?
body: <p>We have a web application running on Tomcat 7 and it loads a JNI library module that was coded in C++ and which was developped by a third party. Basically, this library provides biometric technology to our web app. We cannot use an all java solution for this and have no other choice than to use that JNI library module.</p>
  
  <p>The problem is that sometimes, the JNI library module crashes because it does a segmentation fault and corrupts memory. When that happens, it makes Tomcat crash completely without warning.</p>
  
  <p>Is there a way to prevent tomcat from completely crashing when a loaded JNI library module crashes? Ideally, when the JNI library module crashes, we would like to be notified and have a chance to reload the web app/module. Is that possible?</p>
  
  <p>Thanks for the help.</p>