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

[1397 byte] By [ethical_anarhista] at [2007-11-27 1:02:20]
# 1
any hint would be appreciated
ethical_anarhista at 2007-7-11 23:37:18 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...