Hi,
I am trying to use the interfaces plugin from
http://xml.w-wins.com/xjc-plugins/interfaces/
I dont seem to be able to get this to work though. If I use a binding file
containing the following:
<jxb:bindings version="1.0"
xmlns:jxb="
http://java.sun.com/xml/ns/jaxb"
xmlns:xs="
http://www.w3.org/2001/XMLSchema"
xmlns:ext="
http://xml.w_wins.com/xjc-plugins/interfaces">
<jxb:bindings scd="//TEST">
<ext:interface>java.io.Serializable</ext:interface>
</jxb:bindings>
</jxb:bindings>
I get an error from xjc saying:
[ERROR] cvc-elt.1: Cannot find the declaration of element 'ext:interface'.
If I try with inline annotations, I also dont seem to get it to work. XJC
runs and generates classes, but without the requested interface.
Eg
<xs:complexType name="test">
<xs:annotation>
<xs:appinfo>
<ext:interface>java.io.Serializable</ext:interface>
</xs:appinfo>
</xs:annotation>
...
I know the InterfacesXJCPlugin.jar is correctly being recognised by xjc as
it shows the -Xinterfaces option when I do a xjc -h
Any help appreciated, as I really need to add some interfaces to some of my
generated classes.
Cheers,
Menno
--
View this message in context: http://www.nabble.com/Using-interfaces-plugin-problems-tp16895129p16895129.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.