Using Jnetpcap in Spring

2 replies [Last post]
prc_prabhu
Offline
Joined: 11/13/2015

Hi,

I'm Trying to use Jnetpcap in a Web Application. It is working fine with the first startup of the Application Server.
i.e., The Native Libraries are registering Correctly and it able to parse the Input files.

But, once I do redeployment of code or enable/disable of the WAR file. (i.e., Application server is not restarted, only the application is redeployed) it fails to startup, the native libraries are not registered and throwing

java.lang.UnsatisfiedLinkError: com.slytechs.library.NativeLibrary.dlopen(Ljava/lang/String;)

Once, wee restart the Application Server, It works Fine.

Please let me know how to un-register the Native Library?

I'm Trying some thing like this..

NativeLibrary.loadLibrary(Pcap.LIBRARY).ref.dispose();

But it doesn't Help....

prc_prabhu
Offline
Joined: 11/13/2015
Any Help on this... How to
StephenCurry
Offline
Joined: 06/05/2015
I'm trying to figure out the

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.