Castor
807607Nov 1 2006 — edited Nov 1 2006I have found some code about Castor and I want to use it in order to convert Xml into Java and vice versa. The link of the code is http://www.onjava.com/pub/a/onjava/2001/10/24/xmldatabind.html. Although I have put the folder org.exolab.castor.xml.*; as the code indicates into my bin folder I get this Exception:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.exolab.castor.util.Configuration.<clinit><Configuration.java:103>
at org.exolab.castor.xml.Unmarshaller.initConfi(Unmarshaller.java:275)
at org.exolab.castor.xml.Unmarshaller.<init>(Unmarshaller.java:226)
at org.exolab.castor.xml.Unmarshaller.<init>(Unmarshaller.java:213)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:787)
at ReadPerson.main(ReadPerson.java:8)
Does anyone know something about this Exception?