This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: JNI integration of Web service
It's not a secret anymore!