• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

JNI integration of Web service

Posts: 3
  • 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.
I was born with webbed fish toes. This tiny ad is my only friend:
how do I do my own kindle-like thing - without amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!