Re: [Simple-support] Question about missing XMLInputFactory
Brought to you by:
niallg
|
From: Rinaldo D. <Rin...@Su...> - 2009-01-05 17:53:34
|
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)
>
|