  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | JSP - A mailing list about Java Server Pages specification and reference | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | UnsatisfiedLinkError while using JNI | UnsatisfiedLinkError while using JNI 2006-11-18 - By Daniel Wildschut
Back -- --BEGIN PGP SIGNED MESSAGE-- -- Hash: SHA1
Hello, I am using JNI to load a library which I use for a Web Service running on a Tomcat5.5-Server using Axis. My problem is that when I call a native function it immediatly fails with java.lang.UnsatisfiedLinkError : new_ParticleSocket__SWIG_0 ( new_ParticleSocket__SWIG_0 being the function called ). No further information is provided by the exception. After checking the obvious ( classpath and java.library.path/LD_LIBRARY_PATH, also checked if the library was loaded twice ) I checked the library itself ( which is generated by SWIG 1.3.29 ) using nm to see if all symbols were generated correctly ( which they were, the symbols are all in the form Java_edu_teco_particles_libParticle_libparticleJNI_* and in a standalone form without the prefix). I then used LD_DEBUG=all to check if the library was indeed loaded. There I found that the library was loaded however when JNI searches for the necessary function it does not search the newly loaded library. ( A lookup is performed on all libraries loaded before but not on the new library ) I am using Debian GNU/Linux with Sun JDK 1.5.08
Any help would be appreciated
- Daniel Wildschut -- --BEGIN PGP SIGNATURE-- -- Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFFX3dDUS3Mvw9vkgURArBYAJ9HFskU8O8jSXvBibCA0X+mqv4FPwCbBIDk jRUTnbGR1+t+ejlH9OLCoTk= =VkIX -- --END PGP SIGNATURE-- --
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To start a new topic, e-mail: users@(protected) To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
|
|
 |