geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Mulder <ammul...@alumni.princeton.edu>
Subject XMLBeans for DDs
Date Sat, 21 Feb 2004 05:41:21 GMT
	So I'm trying to run a JSR-88 tool that uses XMLBeans for the J2EE
DDs against the Geronimo (connector) JSR-88 plugin that also uses XMLBeans
for the J2EE namespace.  Problem is, the tool doesn't use the same package
names that the Geronimo plugin does.  And apparently there's some static
mapping from namespaces to object classes in XMLBeans, because when the
Geronimo code tries to load a J2EE String, it gets the tool's J2EE String
class instead of the Geronimo J2EE String class and gets a
ClassCastException.

	It's possible to construct the tool such that there's a separate 
XMLBeans instance loaded for each of the server plugin and the tool code 
with some ClassLoader magic.

	It would also be possible to make sure the Geronimo DDs don't use
or extend any classes from the J2EE namespace (for example, there's
probably no reason why the field in question couldn't be an XSD String
instead of a J2EE String).

	It might also be possible to work around this in XMLBeans somehow.

	Any preferences or suggestions?

Aaron


Mime
View raw message