JDK-4750956 : (cl) Allow a shared native library to be accessible by more than one classloader
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang:class_loading
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2002-09-20
  • Updated: 2016-02-16
  • Resolved: 2016-02-16
Description
###@###.### 2002-09-20


J2SE Version (please include all output from java -version flag):
 java version "1.4.1-rc"
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-rc-b19)
 Java HotSpot(TM) Client VM (build 1.4.1-rc-b19, mixed mode)

Operating System Configuration Information (be specific):
 Win2K

check bug#4642062 and bug#4748750 for detail problem description
and test case.

Problem description:(check bug#4748750)
  Having a problem with an applet that loads a native dll second time via jni.
  The applet is loaded as expected at the frist time. Then the page that hosts
  the applet is unloaded and the applet is destroyed, expect the applet to be
  loaded again from another site. However, the VM throws the "java.lang.UnsatisfiedLinkError"
exception instead.

Example case:
    They could have many sites [www.a.com,www.b.com,... www.portal.com] which
    particapte in single signon using their product , with CAPI profiles or
    smartcard as the mode of authentication and being used for
    signing/encryption capabilities.  Each of these sites to do that will have
    to serve up their CAPI applets , but will not work as it fails to load the
    DLL if goes to www.b.com to do digital signatures for forms with the applet,
    after authenticating to www.portal.com with the smartcard or CAPI profile.

Test cases: check both bug4642062 and bug#4748750

Customer impact Statement:
  It is a big concern for the customer; They just can not ever support CAPI 
  and SmartCard login with their Applets when used with Sun Plugin.   And will
  have to stick with only Microsoft JVM , only on IE [no netscape 7.0 support].
  Even worse, if the user is using WindowsXP , they are toast as they do not
  have a MS JVM, and MS has removed the download from their website. 
  They would really want SUN JVM be able to allow a shared library to be
  accessible by more than one classloader.

Comments
Not applicable any more.
16-02-2016