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