Hi, Brian,
The default implementation of XMLInputFactory, the
class MXParserFactory is located in jsr173_1.0_ri.jar
which is a part of reference implementation from
http://ftpna2.bea.com/pub/downloads/jsr173.jar.
You will have to add this jar to your application.
Alternatively, you may use WebLogic implementation
from
http://ftpna2.bea.com/pub/downloads/wls_stax.jar.
Before calling XMLInputFactory.newInstance(), call
System.setProperty("javax.xml.stream.XMLInputFactory",
"weblogic.xml.stax.XMLStreamInputFactory");
The last (actually should be the first) : JAXB 2.0
comes bundled with implementation of XMLInputFactory.
The implementation is in sjsxp.jar. As before, you
will need to call
System.setProperty("javax.xml.stream.XMLInputFactory",
"com.sun.xml.stream.ZephyrParserFactory");
Kirill
--- Brian Pontarelli <brian_at_pontarelli.com> wrote:
> Here's a stack trace I'm getting when using the JSR
> 173 code to marshal
> and unmarshal objects.
>
> 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)
> at
>
com.inversoft.util.JAXBTools.unmarshal(JAXBTools.java:87)
> (snip)
>
> The stack trace looks like an issue with the JSR 173
> code, but I wasn't
> sure if anyone on this list knew what the issue was.
> Perhaps the JAXB
> download is missing a required JAR file or
> something?
>
> - brian
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail:
> users-help_at_jaxb.dev.java.net
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com