Re: [Simple-support] Question about missing XMLInputFactory
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2009-01-05 19:15:38
|
Hi,
Just out of interest did you get this because you did not have the StAX API and implementation in the classpath. Therefore getting the class not found error, then moving to 1.6 which has StAX as part of the JDK it worked?
Niall
--- On Mon, 1/5/09, Rinaldo DiGiorgio <Rin...@Su...> wrote:
> From: Rinaldo DiGiorgio <Rin...@Su...>
> Subject: Re: [Simple-support] Question about missing XMLInputFactory
> To: sim...@li...
> Date: Monday, January 5, 2009, 9:51 AM
> Rinaldo DiGiorgio wrote:
> > Hello,
> >
> > I thought I read the directions. I am trying to
> read an XML file
> > and I get the following error. I am using
> > 1.6 on a Mac.
> >
> >
> I figured it out, NetBeans sets my default for 1.5 and 1.6
> is required.
> Please ignore the previous question.
>
> > Serializer serializer = new Persister();
> > File source = new
> File("configuration.xml");
> >
> > Configuration configuration = null;
> > try {
> > configuration =
> serializer.read(Configuration.class, source);
> > } catch (Exception ex) {
> >
> >
> Logger.getLogger(ProcessUrlWithCalais.class.getName()).log(Level.SEVERE,
>
> > null, ex);
> > System.exit(0);
> > }
> >
> > Exception in thread "main"
> java.lang.NoClassDefFoundError:
> > javax/xml/stream/XMLInputFactory
> > at
> >
> org.simpleframework.xml.stream.NodeBuilder.<clinit>(NodeBuilder.java:48)
> > at
> org.simpleframework.xml.core.Persister.read(Persister.java:489)
> > at
> org.simpleframework.xml.core.Persister.read(Persister.java:471)
> > at
> org.simpleframework.xml.core.Persister.read(Persister.java:452)
> > at
> org.simpleframework.xml.core.Persister.read(Persister.java:431)
> > at
> >
> calaisie.ProcessUrlWithCalais.main(ProcessUrlWithCalais.java:135)
> >
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Simple-support mailing list
> Sim...@li...
> https://lists.sourceforge.net/lists/listinfo/simple-support
|