Peter A wrote:

> Ok here is what worked successfully inside an applet:
> 
> ---------------------- BEGIN ----------------------------
> XStream xstream = new XStream(new PureJavaReflectionProvider(),new
> XppDriver(),
>                 new ClassLoaderReference(UtilIO.class.getClassLoader()));
>         xstream.registerConverter(new
> JavaBeanConverter(xstream.getMapper()));
> ----------------------- END -----------------------------
> 
> Where UtilIO is just a random class in my code.  At one point I made the
> mistake of passing in Reader.class which caused weird class not found
> exceptions to be thrown.
> 
> I would recommend adding that somewhere to the tutorial since the default
> doesn't work in Applets.  Thanks again for the help!

Actually the context classloader should do:

  Thread.currentThread().getContextClassloader();

Cheers,
Jörg


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to