java.lang.UnsatisfiedLinkError for JNI Call

I am trying to build a custom adapter using the WebMethods ADK and making a JNI call to invoke a C funtion in a Windows environment. On a standalone mode, it works fine, but when it is put inside the adapter code, it keeps throwing the java.lang.UnsatisfiedLinkError exception when the function is called. It is confirmed that the JVM is able to detect the DLL(path is part of java.library.path) but it is not able to invoke the functions.
Any insight to this would be highly appreciated.