ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | oscar List | July 2005 Index

<--  Date Index  --> <--  Thread Index  -->

Warning - spectacularly bad piece of API design in javax/xml/namespace/QName


Some of you may have seen an error on the following lines when working with Oscar, JBOSS or other containers which isolate modules using different classloaders:

Caused by: java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName class

It seems that this is caused by a private method or variable, which cannot be accessed across classloaders.

Since this class is a common part of xml-apis, and these apis are used by various XML bundles (xmlbeans, Xerces, Batik etc. etc.) what it means is that you cannot do something nice like create a single xml-apis bundle which is shared by other bundles. You seem to either have to

- package separate copies of this class in each bundle that uses it

- package all bundles that use xml apis into (specifically this class) into a single common bunde

Unless I'm missing something, this seems to be a hideously bad piece of design or implementation detail in the xml apis, especially for those of us working in modular environments.

-- Rob


Ascert - Taking systems to the Edge
robw@xxxxxxxxxx
+44 (0)20 7488 3470
www.ascert.com




<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.