<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello Vincent<br>
<br>
<div class="moz-cite-prefix">Le 05/07/13 13:18, Vincent Gaudissart a
écrit :<br>
</div>
<blockquote cite="mid:51D6AB96.6040104@c-s.fr" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<span id="result_box" class="" lang="en">(...snip...)<br>
<tt>@XmlType(name = "FileName_Type", namespace = Namespaces.GMX)</tt><tt><br>
</tt><tt>public class FileName {</tt><tt><br>
</tt><tt> @XmlAttribute(name = "src", namespace =
Namespaces.GMX)</tt><tt><br>
</tt><tt> private URI src;</tt><tt><br>
</tt><br>
(...snip...)<br>
</span><span id="result_box" class="" lang="en"><span class="hps">Whatever</span>
<span class="hps">changes</span> <span class="hps">I make,</span>
<span class="hps">they</span> <span class="hps">have no effect</span>
<span class="hps">or I</span> <span class="hps">get the
following error</span><span>:</span><br>
<tt>com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException:
1 counts of IllegalAnnotationExceptions</tt><tt><br>
</tt><tt>@XmlAttribute/@XmlValue need to reference a Java type
that maps to text in XML.</tt><tt><br>
</tt><tt> this problem is related to the following location:</tt><tt><br>
</tt><tt> at private java.net.URI test.gmx.FileName.src</tt><tt><br>
</tt><tt> at test.gmx.FileName</tt></span><br>
</blockquote>
<br>
Apparently JAXB complains about the 'src' attribute not being a
text-like object. I'm a little bit surprised, because I though that
JAXB was mapping URI to String by itself. But just in case, did you
tried to change the type of the 'src' field from URI to String?<br>
<br>
Martin<br>
<br>
</body>
</html>