UnsatisfiedLinkError on JBoss calling a JNI method

I'm having problem deploying a simple JNI Web App on JBoss 4.0.5.

I'v packaged the native methods in a seperate .jar file located in the JBoss \lib directory.

The required .dll files are in the path.

When my Servlet tries to invoke the native method, it gives me the UnsatisfiedLinkError.

Needles to say, it works just fine in a standalone application.

What am I doing wrong ?

Thanks in advance,

Tamir

Message was edited by:

Tamir_Weiss

[500 byte] By [Tamir_Weissa] at [2007-11-27 5:54:50]
# 1
Tamir,An explanation I can think about is a problem with the ClassLoaders of JBoss. In order to solve it, please put the jar with the native call in <JRE_DIR>/lib/ext. This way your code is loaded by one of the system ClassLoaders.Daniel
Daniel.Barkana at 2007-7-12 15:49:43 > top of Java-index,Java HotSpot Virtual Machine,Specifications...