The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
August 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


ClassLoader and Applet

Posted by Greg on August 28, 2001 at 2:52 PM


I'm trying to define a ClassLoader in an applet contained in a signed CAB file (i'm using IE for my tests)

My ClassLoader download a distant unsigned jar file and tries to load classes from the data it contains. My Cab file is signed with the right level of permission, but I got a security exception. When I print the stackTrace, it shows me strange class loader :

at com/ms/vm/loader/ResourceLoader.getURLData
at com/ms/vm/loader/ResourceLoader.getCodebaseRelativeData
at com/ms/vm/loader/ResourceLoader.getClassData
at com/ms/vm/loader/URLClassLoader.findClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/vm/loader/URLClassLoader.loadClass

It seems that whereas the byte of my classes are already downloaded and stored in the JVM, IE tryes to use some kind of network class loader.
Does someone know something about this ResourceLoader and URLClassLoader ?




Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us