-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stefan,

On 8/27/2010 7:34 AM, Chefo wrote:
> thanks for the interest - of course I'll give you an example. Surprisingly
> it is not java.lang.Object that I'm trying to hide but the stax api in java
> 6. I need to do so because of the notorious fault in the
> XMLOutputFactory#newInstance(String, ClassLoader).

Interesting.

Why not simply put your replacement STAX into the system's endorsed
libraries? Wouldn't that fix pretty much everything, and require much
less work?

> The thing is that osgi runtime in which the catalina lives complicates the
> class loading a bit.
> Note that this black voodoo magic for configuring restricted system packages
> is not something I've invented - I just saw there is such thing in jetty and
> was extremely happy to see it could be implemented with little effort in
> tomcat as well.

Jetty is OSS... can you steal their ClassLoader implementation?

I highly recommend Rainer's suggestion of writing a loader to configure
your ClassLoader, rather than trying to get the ClassLoader to configure
itself (always tricky).

Good luck, and let us know how it goes.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkx4OGAACgkQ9CaO5/Lv0PD+TACeOVU9e2L41rqdmZ8pRx/DIktv
Rh0An1OC5U/ZXarXx7e2xEAwt7DPyB5+
=BvEJ
-----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