• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

UnsatisfiedLinkError on JBoss calling a JNI method

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi all

I'm having problem deploying a simple JNI Web App on JBoss 4.0.5.

The required .dll files are in the path.

When my Servlet tries to invoke the native method, it gives me the UnsatisfiedLinkError.

Needles to say, it works just fine in a standalone application.

What am I doing wrong ? Please let me know the solution for this problem. I am struggling from 2days to rectity this problem.

Thanks in advance,
Aresh babu
 
Sheriff
Posts: 22810
132
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is the DLL on your java.lang.path? Don't you need a security setting somewhere to be able to use native code in web containers?
 
aresh babu
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rob,

my dll file is there in the path properly. But it is giving the error when i tried to call a native method.

This dll is working fine because i already i have used in stand alone java application.

Please suggest me the solution.

Thanks &Regards
Aresh Babu
 
Rob Spoor
Sheriff
Posts: 22810
132
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://72.5.124.102/thread.jspa?threadID=5178090&messageID=9697167
http://forums.java.net/jive/message.jspa?messageID=28105

Results from a quick Google search on JBoss JNI
 
You'll never get away with this you overconfident blob! The most you will ever get is this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic