Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-623

Problem with classloader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 2.2.1
    • None
    • None
    • Operating System: All
      Platform: PC
    • 17283

    Description

      I am implementing the following architecture:
      1. an applet is downloaded over server authenticated SSL,
      2 collects the PIN from the user and logs into PKI
      3. opens mutually authenticated SSL and transfers XML application jars to the local file system
      4. creates URLClassloader initialised with the file URLs of the newly installed jars
      5. uses reflection to call the main method of the application.

      I noticed a number of requests for various Xerces classes make their way to the web server generating 404 responses, like this one:

      164.95.119.43 - - [21/Feb/2003:08:44:52 -0500] "GET /jars/org/apache/xerces/impl/dv/dtd/DTDDVFactoryImpl.class HTTP/1.1" 404 346

      I tracked this dow to the org.apache.xerces.util.SecuritySupport12 class. The method getContextClassLoader() returns sun.plugin.security.PluginClassLoader instead of URLClassLoader that was used to start the application.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ams@izoard.com Aaron Stromas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: