0 Replies Latest reply on Jun 1, 2007 2:08 PM by Patrick Vogt

    Cannot load JNI class from two different servlets

    Patrick Vogt Newbie

      I need to load some JNI code from two different servlets (potentially two different EARs).
      When doing so (or even redeploy the EAR containing the servlet) I get a UnsatisfiedLinkError link error telling me that the native library is allready loaded in a other classloader.

      I tried a couple of different approaches, including having the systemclassloader load the library or use a session bean to load the class and return it, but still running in different classloader problems.

      I would be very gratefull if anyone could point me towards a possible solution.

      Thanks
      Patrick