An open source project which allows you to read arbitrary Java annotations from XML resources.
Questions tagged [annox]
29 questions
9
votes
2 answers
Suppress compiler warnings on JAXB generated classes
This is possibly a duplicate of this question (Avoiding Compiler warnings on code generated by xjc) but since I am not very well versed in XJC/JAXB custom bindings idiosyncrasies, I'll presume I may have misunderstood the mentioned question.
My…

quantum
- 3,000
- 5
- 41
- 56
6
votes
1 answer
JAXB schema to Java Different XmlRootElement name and Class name
I have a xsd schema from which I'm generating some java classes. I'm using jaxb for the generation.
I want to be able to generate a class annotated with @XmlRootElement, but I want the @XmlRootElement name property to be different than the name of…

Paulo Rodrigues
- 593
- 14
- 32
4
votes
1 answer
How to use jaxb2-annotate-plugin with XJC in command line
I'm building java classes based on an xsd using "jaxb-ri" in command line (xjc.bat).
I want to set a namespace in an XmlType annotation using jaxb2-annotate_plugin but I don't know how to add this plugin to xjc classpath and acitvate it.
here is my…

Samy
- 121
- 3
- 9
4
votes
1 answer
Edit JAXB generated annotation using annox and add namespace in param
I do have the following annotation in a JAXB generated class
@XmlType(name = "MessageInfoType", propOrder = {
"debugTraceBoolean",
"clientHostnameString",
"endUserIPAddress"
})
Need to produce the following annotation in JAXB class with…

user1631733
- 111
- 1
- 3
- 6
4
votes
2 answers
Adding annotations to JAXB-generated classes which depend on information in XSD
I have a WSDL + XSD that needs to be turned into Java classes. That's pretty simple - wsimport will handle that without issue. However, I also need to be able to add annotations to the generated classes, and those annotations need to contain…

ipsi
- 2,049
- 18
- 23
3
votes
1 answer
Use jaxb:class and annox:annotate together in jaxb2-maven-plugin?
When I use jxb:class with annox:annotate, I get this exception:
com.sun.istack.SAXParseException2; systemId: file:/usr/workspace/project/package/file.xjb; lineNumber: 16; columnNumber: 35; the compiler failed to honor this customization annox:…

Ismael G.
- 378
- 1
- 2
- 10
3
votes
3 answers
"http://annox.dev.java.net" customizations require the "-Xannotate" switch
I am trying to run a real schema through hyperjaxb. I have tested the schema repeatedly using jaxb, and jaxb imports the schema correctly every time. However, when I try to get hyperjaxb to generate hibernate-annotated java classes from the same…

CodeMed
- 9,527
- 70
- 212
- 364
3
votes
2 answers
Annotate JAX-WS SEI class using bindings file
I want to add java annotations the service endpoint implementation interface class for an Apache CXF web service client, generated from a WSDL.
This is the binding file I am using that should leverage the Annotate plugin for JAXB from…

Andrea Ratto
- 815
- 1
- 11
- 23
3
votes
2 answers
ClassNotFoundException with jaxb/annox and custom annotation
I'm a little stuck with an annotations usage scenario and I was hoping for your input.
Given the following annotation (defined in the same project along with ExistingCustomerValidator class )
package com.tktserver.constraints;
@Target({…

Ioannis
- 124
- 10
2
votes
0 answers
Add Custom Annotation on post processor for Apache CXF WSDL2Java
I need to identify the files generated by Apache CXF in case of Soap WebServices via WSDL2Java tool. Is there a postprocessor where I can manipulate the byte data for these generated files to add a custom annotation on these files?
Following is my…

Abhishek
- 1,031
- 4
- 16
- 25
2
votes
0 answers
Annotate generated web service client Java interface
While generating an Apache CXF web service client with Maven, is there a way to add a custom annotation on a Service Endpoint Interface (SEI) class through the JAX-WS bindings file?
So far, it seems to me that things like Annox are restricted to…

Andrea Ratto
- 815
- 1
- 11
- 23
2
votes
1 answer
JAXB SCD not working with annox
I am having difficulties getting JAXB binding files to work with annox and SCD element selection. The schema is a bare basic schema with a ComplexType named SongType. I tried the normal way doing something like below and everything works a treat,…

Niels
- 77
- 1
- 9
2
votes
1 answer
JAXB separate episodes with annox customizations fails : SAXParseException2
I have 2 maven modules.
First one contains only a xsd schema to generate base POJO classes.
Second on contains a xsd schema that imports first one with a catalog file and generate new POJO classes.
Both generation works.
Now, I add annotations to…

Nelson G.
- 5,145
- 4
- 43
- 54
2
votes
0 answers
Issue in using Annotate Plugin(Annox) with "cxf-codegen-plugin"
I am developing RESTFul services in my application. We are using 'cxf-codegen-plugin' to generate the JAXB classes from the schema. For a given requirement, I need to add some annotation to the generated JAXB classes and I was trying to use Annotate…

Rohit Gupta
- 91
- 1
- 8
2
votes
1 answer
xjc with annox running from command prompt
I have tried to run a example from the website http://confluence.highsource.org/display/J2B/Annotate+Plugin#AnnotatePlugin-Activation. The very first schema provided in the webpage and I saved it as schema.xsd under c:\jaxb folder. Then, I ran the…

user3238303
- 21
- 2