dev@glassfish.java.net

Re: default StaX provider is com.bea ...???

From: Bhakti Mehta <Bhakti.Mehta_at_Sun.COM>
Date: Fri, 02 Mar 2007 09:21:28 -0800

JSR 173 is the spec led by BEA and the jsr173_api,jar which gets pulled
into javaee.jar comes from BEA hence the default provider is com.bea...
You are right that our implementation is in webservices-rt.jar

Regards,
Bhakti

kedar wrote:
> I ran a program to parse an XML using GlassFish V2 and JDK 5.
> I have javaee.jar in the classpath. And I am surprised to find
> that the default value of the provider implementation class
> is:
>
> com.bea.xml.stream.MXParserFactory!
>
> I understand that javaee.jar contains only the API, but then
> why is the default provider coming from "com.bea"? The detailed
> error is below.
>
> The StaX implementation integrated with GlassFish V2
> is in webservices-rt.jar, right?
>
> Thanks.
>
> 1.
>
> javax.xml.stream.FactoryConfigurationError: Provider
> com.bea.xml.stream.MXParserFactory not found
> at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
> at
> javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
>