[Opensource] DBTool error: xerces in Tomcat4.0.3/common/lib

Michael Rimov rimovm at centercomp.com
Sat Sep 7 02:14:52 PDT 2002


At 08:32 PM 9/6/2002 -0700, you wrote:
>Hi Mike,
>
>Regarding the xerces issue: I mentioned this in a message earlier
>
> 
>http://mail.jcorporate.com/pipermail/opensource/2002-September/011725.html
>
>Since Tomcat 4.0.x includes xerces.jar, it seems to be in the path for all 
>Web applications.

That's true, but it SHOULD be class loader independent... ie the class 
loader SHOULD check for WEB-INF/lib before it tries to load from 
/common/lib.... at least it DOES seem to work in my own tests... Of course, 
I could be missing the mark, so I'm definitely note trying to argue here... 
I just can't get it to break for me.  I ONCE had problems, but then I 
discovered a REALLY old crimson in my server directory, so tomcat's web.xml 
parsing was dieing.

                                                 -Mike




>Tomcat 4.1.10 has the xercesImpl.jar that appears to match the latest 
>expresso.
>
>Larry
>
>
>
>At 05:11 PM 9/6/2002, you wrote:
> >At 10:39 AM 9/5/2002 +0100, you wrote:
> >>Hi Mike
> >>
> >>I've switched to using the ea4 release as suggested, but essentially I'm
> >>getting the same problem:
> >>
> >>Found class org.apache.xerces.jaxp.SAXParserFactoryImpl but unable to
> >>instantiate ClassFactory org.apache.xerces.jaxp.SAXParserFactoryImpl
> >>javax.xml.parsers.FactoryConfigurationError:
> >
> >Hi Malcom,
> >
> >Ok, here's what is going on:
> >
> >We first try to just load the class:
> >org.apache.xerces.jaxp.SaxParserFactoryImpl
> >
> >Which succeeds... even if you have crimson in the classpath, since we 
> first try Xerces, if Xerces is anywhere in your classpath, we'll end up 
> that first.
> >
> >But then there's some sort of version mismatch going on when we actually 
> try to instantiate a ParserFactory, which is what's failing.
> >
> >So I SUSPECT that there is an old Xerces getting into your classpath. 
> [As of ea-4, since there's a xmlAPIs.jar as well as xercesImpl.jar (or 
> something of that name :) ), it's possible that those aren't in the classpath??
> >
> >I'd recommend just printing your classPath and posting it here if you're 
> willing to do some more digging.
> >                                        -Mike
> >
> >_______________________________________________
> >Opensource mailing list
> >Opensource at jcorporate.com
> >http://mail.jcorporate.com/mailman/listinfo/opensource
> >Archives: http://mail.jcorporate.com/pipermail/opensource/
>
>_______________________________________________
>Opensource mailing list
>Opensource at jcorporate.com
>http://mail.jcorporate.com/mailman/listinfo/opensource
>Archives: http://mail.jcorporate.com/pipermail/opensource/




More information about the Opensource mailing list