-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Peterm,,

On 1/23/13 9:29 AM, Peter Lavin wrote:
> My application was using ObjectInputStream (OIS) to convert a
> serialized instance of an object. OIS uses a different class
> loader, one which does not have visibility of the classes loaded in
> the WebappClassLoader. This was giving a ClassNotFoundException.
> 
> Then I found CustomObjectInputStream. Initially, I tried to import
> this from catalina.jar but this caused several errors on deploying
> the war, mainly related to XML parsers (??).
> 
> I then got the source for CustomObjectInputStream and added it to
> my web-app (about 100 lines of code). This yielded a solution, full
> credit to... Craig R. McClanahan and Bip Thelin for writing this
> :-)
> 
> Thanks to those who replied to my earlier question.

I should have read this first. Odd that OIS doesn't use the
ContextClassLoader...

- -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/

iEYEAREIAAYFAlEAPKkACgkQ9CaO5/Lv0PBGGQCgsvilfSlKlnCjNYMIkR6keoi8
uLEAoLFJTHCG4lgIhPmJc5VFu1ruJaCt
=aYfv
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to