-----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@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to