<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<DIV>Hello!</DIV>
<DIV>How can I use geotoolskit to marshall GML elements? I try this code (as 
test code from source GmlXMLBindingTest.java):</DIV>
<DIV> </DIV>
<DIV>MarshallerPool  pool =  GMLMarshallerPool.getInstance(); - I get 
an exception in this line</DIV>
<DIV>...</DIV>
<DIV>Exception in thread "main" java.lang.AssertionError: 
javax.xml.bind.JAXBException: Provider 
com.sun.xml.internal.bind.v2.ContextFactory could not be instantiated: 
com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of 
IllegalAnnotationExceptions</DIV>
<DIV>org.opengis.metadata.Identifier is an interface, and JAXB can't handle 
interfaces.</DIV>
<DIV>    this problem is related to the following location:</DIV>
<DIV>        at 
org.opengis.metadata.Identifier</DIV>
<DIV>        at private java.util.List 
org.geotoolkit.gml.xml.v321.AbstractGMLType.name</DIV>
<DIV>        at 
org.geotoolkit.gml.xml.v321.AbstractGMLType</DIV>
<DIV>        at 
org.geotoolkit.gml.xml.v321.AbstractFeatureType</DIV>
<DIV>        at 
org.geotoolkit.gml.xml.v321.DynamicFeatureType</DIV>
<DIV>        at 
org.geotoolkit.gml.xml.v321.DynamicFeatureCollectionType</DIV>
<DIV>        at public 
org.geotoolkit.gml.xml.v321.DynamicFeatureCollectionType 
org.geotoolkit.gml.xml.v321.ObjectFactory.createDynamicFeatureCollectionType()</DIV>
<DIV>        at 
org.geotoolkit.gml.xml.v321.ObjectFactory</DIV>
<DIV> </DIV>
<DIV>Field name is org.opengis.metadata.Identifier (interface). Most classes of 
GML are inherited from AbstractGMLType. How to solve the problem interface in 
the field for marshalling?</DIV>
<DIV> </DIV>
<DIV>Sincerely </DIV>
<DIV>Nataliia Puzova</DIV>
<DIV>Software Engineer </DIV>
<DIV> </DIV></DIV></DIV></BODY></HTML>