aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JNI integration of Web service" Watch "JNI integration of Web service" New topic
Author

JNI integration of Web service

Lovely Reyes
Greenhorn

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 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.


--Lovely--
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNI integration of Web service