1. You have to release the ClassLoader that loaded the native library--1.2
states explicitly, in the JNI Spec, that a native library can only be loaded
into one ClassLoader at a time. WHY they do this is beyond me, but it's
hinted that this is a security issue. Check out the JDK1.2 changes to the
JNI Spec, under the "JNI" link off the index.html file in the JDK 1.2
documentation bundle (either downloaded or on javasoft.com).

2. I haven't a clue--are you positive the Vector contains something at the
servlet before it is sent back?

And yes, it's a bit off-topic, but until there's a JNI mailing list, we'll
just growl and make threatening noises at you.... <grin>

Seriously, you might also try the advanced-java list, at "
[EMAIL PROTECTED] " The guys/gals on there might be better
able to assist you with the JNI issues.

Ted Neward
Patterns/C++/Java/CORBA/EJB/COM-DCOM spoken here
http://www.javageeks.com/~tneward
 "I don't even speak for myself; my wife won't let me." --Me

>-----Original Message-----
>From: A mailing list for discussion about Sun Microsystem's Java Servlet
>API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
>Rajendra Mishra
>Sent: Tuesday, September 14, 1999 7:12 PM
>To: [EMAIL PROTECTED]
>Subject: LoadLibrary Problem
>
>
>Hi,
>
>1 - I am doing a loadLibrary in my init() fn. The library is a C-dll which
>houses calls to COM fns used to integrate with the old sytem.
>However, sometimes the server throws an exception saying that the native
>library cannot be loaded as it is already loaded by another classloader.
>How do I solve this problem? Is there any unLoadLibrary in the Java
>language?
>
>2 - I am passing a Vector from the applet to the servlet. The servlet read
>the values and generates some data to send back. I want to display this in
a
>new window using showDocument in the applet. the problem is that there is
no
>data in the html. It is coming from the servlet as blank.
>How do I solve this problem. I can post code here if someboby wnts to take
a
>look.
>
>Any help/tips would be appreciated.
>Thanks.
>Raaj.
>
>Note : If this is an off-topic question, then please accept my apologies.
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to