File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes JNI integration of Web service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JNI integration of Web service" Watch "JNI integration of Web service" New topic

JNI integration of Web service

Lovely Reyes

Joined: Jul 11, 2010
Posts: 3
Good Day!

I was just wondering if it possible to integrate JNI on Webservice.

I already have a C library in *.so and a Web service trying to call it.
I think my library was successfully loaded but when i try to call may native method I am encountering UnsatisfiedLinkError

May 25, 2012 11:48:35 AM invoke
SEVERE: <package/class>processTransaction(Ljava/lang/String;)Ljava/lang/String;
java.lang.UnsatisfiedLinkError: <package/class>processTransaction(Ljava/lang/String;)Ljava/lang/String;
at <package/class>processTransaction(Native Method)

when I javap -s my program
public native java.lang.String processTransaction(java.lang.String);
Signature: (Ljava/lang/String;)Ljava/lang/String;

My webservice is running on 64-bit unix, may C library was also compiled in this server but my Web service was compiled in xp 32 bit.
is this an issue? I already double checked my parameters but it seems correct.

Kindly help me with this, Im a newbie java and c programmer.

I agree. Here's the link:
subject: JNI integration of Web service