I have a webapp running under Tomcat 3.2.1 that needs to make JNI calls in order to access data and methods in legacy C++ code. A servlet is loaded on startup of the webapp
You can't load the same native library twice.
Put the class in a jar file under /lib/, it will be shared over all wars.
/lib/