-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Peter,
On 1/24/13 4:27 AM, Peter Lavin wrote: > java.lang.ClassNotFoundException: > common.core.providers.HelloWorldSP at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676) > > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521) > > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:264) at > java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:621) > at > java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1592) > > at > java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1513) > > at > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1749) > > at > java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346) > at > java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) > at > common.utilities.SerializationUtilities.Base64StringToObject(SerializationUtilities.java:165) That > sure looks like it's using the WebappClassLoader to try to load the class. After calling: > ClassLoader contextClassLoader = > Thread.currentThread().getContextClassLoader(); Class<?> spClass = > cl.arrayToClass(null, byArray, True); What do you get back? Does the Class have the right name, etc? You are fetching the current context ClassLoader and then using "cl" to define your Class. Where do you instantiate your FileClassLoader? Do you ever set it as the context ClassLoader? If not, it's never going to work. I think you can do this without the CustomObjectInputStream class (as long as you don't need to run under a SecurityManager). - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEAREIAAYFAlEBcF0ACgkQ9CaO5/Lv0PDENgCghLaRu7LdIfbIrzR3Ubi8n3TX HLsAmgJPcEpMkW+knGuVxeh7WsnZyKhW =+pi2 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org