Hi,

I am trying to use a native class in a servlet. The library containing
the implementation of the native methods is loaded at the servlet
initialization (static { ... } block), and everything works fine.

However, when my application gets redeployed, the next time I try to
access my servlet I get an exception:

java.lang.UnsatisfiedLinkError: Native Library libsipssubscription.so already loaded 
in another classloader
  at java.lang.Error.<init>(Error.java:52)
  at java.lang.LinkageError.<init>(LinkageError.java:45)
  at java.lang.UnsatisfiedLinkError.<init>(UnsatisfiedLinkError.java:44)
  at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1434)
  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1315)
  at java.lang.Runtime.load0(Runtime.java:715)
  at java.lang.System.load(System.java:826)
  at com.ecompil.sipswrapper.SIPSApiSub.<clinit>(SIPSApiSub.java:68)
  at 
com.ecompil.web.SIPSSubscriptionRequest.processSubscription(SIPSSubscriptionRequest.java:60)

Is there a way to avoid such an error ?

Thanks in advance.
-- 
Etienne Bernard <[EMAIL PROTECTED]>
Senior Software Engineer - FullSIX - http://www.fullsix.com/

Reply via email to