Java Mailing List Archive

http://www.junlu.com/

Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
UnsatisfiedLinkError while using JNI

UnsatisfiedLinkError while using JNI

2006-11-18       - By Daniel Wildschut

 Back
Reply:     1     2     3     4     5  

-- --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 Source code of 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)


©2008 junlu.com - Jax Systems, LLC, U.S.A.