-
1. Re: Xerces
adrian.brock Mar 30, 2003 6:47 PM (in response to mgl)Castor is probably using Class.forName()
rather than the thread context class loader.
You can make jboss run with xerces
by putting the xerces jars in ${jboss.dist}/lib
and starting jboss with
./run.sh -j xerces or
run.bat -j xerces
I've seen problems with JAXP in 1.4
where certain methods of obtainaing the parser
defaults to the Crimson included in jre.
Regards,
Adrian -
2. Re: Xerces
mgl Mar 31, 2003 1:15 AM (in response to mgl)Thanks for the tip. However it raises two new questions. Suppose JBoss uses Xerces. (I do not know if that is the case, but let us presume it is.) Copying 'my' Xerces jars to /lib has the potential to conflict with existing Xerces jar files, hasn't it?
And the second question, JBoss uses Castor. For my web app to use Castor the jar file should be in WEB-INF/lib. As a result, it is very likely to be using two different versions of Castor: the JBoss included one and my app's one. That is a potential version conflict, isn't?
What is a wise thing to do? Always use the same version?
Regards,
Marcel -
3. Re: Xerces
adrian.brock Mar 31, 2003 9:44 AM (in response to mgl)Using the same version is preferable.
There are mechanisms for isolating application
classes such as turning on the servlet classloader
or using a seperate loader repository for an ear.
3.2 should make some of this easier.
Regards,
Adrian