• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNI integration of Web service

 
Lovely Reyes
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 com.sun.xml.ws.server.sei.EndpointMethodHandler 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic