Validator cannot be created
I get UnsupportedOperationException when trying to create a validator:
Exception in thread"main" java.lang.UnsupportedOperationException: This feature is not available in JAXB RI 2.0
at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.createValidator(JAXBContextImpl.java:663)
at org.freenet.freekiwiki.InitialInsert.main(InitialInsert.java:53)
The code that generates that is:
JAXBContextjaxbContext =null;
Validatorvalidator =null;
try
{
jaxbContext= JAXBContext.newInstance("org.freenet.freekiwiki.xml:org.freenet.freekiwiki.config");
validator= jaxbContext.createValidator();
}
catch (JAXBException e)
{
e.printStackTrace(System.err);
}
P.S.
java -jar /usr/java/jaxb/lib/jaxb-xjc.jar -version
xjc version"2.1.2-b01-fcs"
JavaTM Architecturefor XML Binding(JAXB) Reference Implementation, (build 2.1.2-b01-fcs)
P.P.S. Java version is 1.6.0
Message was edited by:
ethical_anarhist
added PS and PPS

