An open source project which allows you to read arbitrary Java annotations from XML resources.
Questions tagged [annox]
29 questions
2
votes
0 answers
JAXB \ Annox \ Package \ ObjectFactory
I have some problems when using Annox + JAXB with ObjectFactory class.
For example, we have 2 packages with bean classes:
com.my.example.entity.beans.pack1:
a) Bean1
b) Bean2
c) Bean3
com.my.example.entity.beans.pact2:
a) Bean4
b) Bean5
I have…

Helicopter
- 73
- 5
2
votes
2 answers
jaxb annox plugin not working
I am getting the following error on the annox plugin for jaxb generation
[ERROR] file:/Users/dhiller/Space/ifp-core/framework/src/main/resources/schemas/common_2012_04.xsd[5,136]
org.xml.sax.SAXParseException: Unsupported binding namespace…

Dean Hiller
- 19,235
- 25
- 129
- 212
1
vote
1 answer
How to define javax.validation.constraints.Size.List in my binding file using jaxb annotate and annox plugins?
I want to use JSR 303 Bean validation on my classes. My problem is that these classes are generated from schema. I am using the jaxb annotate plugin on my bindings file and was able to define simple validation annotations like @NotNull. My problem…

Bitter Me
- 11
- 2
1
vote
1 answer
Adding annotations to package-info generated by JAXB
I have been using annox to add annotations on my jaxb-generated classes (through bindings files) but I can't find a way to add annotations directly on the package (package-info.java).
I've been trying to do something like this in my…

Xavier Dury
- 1,530
- 1
- 16
- 23
1
vote
0 answers
unsupported namespace annox xjc maven 1
I need the XmlRootElement defined in my generated class. But, getting this error:
[jaxb] [ERROR] [ERROR] Unsupported binding namespace "http://annox.dev.java.net". Perhaps you meant "http://java.sun.com/xml/ns/jaxb/xjc"?
Here is my binding…

user1459641
- 458
- 6
- 17
0
votes
1 answer
Jaxb Annox plugin : Is it possible to change annotation in objectFactory class @XmlElementDecl
Im getting 2 counts of IllegalAnnotationExceptions The element has more than one mapping. Issue after using an episode file to generate the common classes from 2 xsd files. Now I have 2 objectFactory class with mapping for same element . Im thinking…

Rons
- 1
- 1
0
votes
0 answers
Does annox(https://github.com/highsource/annox) support nested collection object while marshalling/unmarshalling using JAXB?
If I have Collection object class member like ArrayList> in some xyz Class, how to marshall this xyz Class object ?
Analogous with 2D, 3D arrays.
Does annox (https://github.com/highsource/annox) support it?
Is it mandatory to…

Mandar Autade
- 336
- 2
- 12
0
votes
1 answer
Manipulate JAXB to create IDREF Elements instead of JaxBElement>
I want to generate classes using maven-jaxb2-plugin.
My input xsd looks like the following:

Matthias Kegler
- 3
- 3
0
votes
2 answers
Add annotate plugin to pom
I cannot add it to my project. I copied the config from the github repo.
Does anyone know what else to do?
UPDATE: after editing "groupId" and adding "version" (A_Di-Matteo) I get a new exception

ave4496
- 2,950
- 3
- 21
- 48
0
votes
1 answer
How to add include=JsonSerialize.Inclusion.NON_NULL to @JsonSerialize using annox plugin
We are generating JAXB objects from xsd, using maven plugin maven-jaxb2-plugin. Below are dependencies we have
jaxb2-basics - 0.6.2
jaxb2-basics-annotate - 0.6.2
In our maven file, we also included -Xannotate and -XtoString
…

KumarRaja
- 121
- 4
- 9
0
votes
0 answers
Is there a way of adding JAXB custom annotations without using annox?
I've been struggling a lot past two days with the annox library, been almost on every google result and can't make it work. I just keep getting 'Unsupported binding namespace "http://annox.dev.java.net". Perhaps you meant…

ZakRoM
- 9
- 2
0
votes
1 answer
Annotation with parameter using annox
I am searching for a way to use "annox" to annotate a generated class. The goal is to add a hibernate annotation to the generated class, that has a constructor value. Here is an example of the desired result:
public class XJCGeneratedClass…

user3142202
- 1
- 2
0
votes
1 answer
Issue with Annox plugin in Jaxb
I been struggling with this issue for sometime now. I trying to add annotations to xjc stubs via an external bindings file but stuck with this error. I have scrounged the net but the correct solution still eludes me. May its something silly i am…

hakish
- 3,990
- 7
- 39
- 56
0
votes
1 answer
JAXB annox and getting error java.lang.NoSuchMethodError: com.sun.codemodel.JAnnotatable.annotations()Ljava/util/Collection
Hi I am using JAXB annox with ant xjc and getting the following error
C:_Dev\build\abcSupplierDomain.xml:479: java.lang.NoSuchMethodError:
com.sun.codemodel.JAnnotatable.annotations()Ljava/util/Collection;
at org.jvnet.jaxb2`enter code…

user1631733
- 111
- 1
- 3
- 6