Questions tagged [jaxb2-basics]

JAXB2 Basics is an open source project which implements plugins and tools for JAXB 2.x reference implementation.

JAXB2 Basics is an open source project which implements plugins and tools for JAXB 2.x reference implementation. JAXB2 Basics is a part of the JAXB2 Commons project.

The implementation of JAXB2 plugins is available in this JAXB2 Basic project.

67 questions
1
vote
0 answers

Java Unmarshalling issue (jaxb)

Below mentioned are the xml file i want to unmarshal and create java object: test.xml
user1716079
  • 69
  • 1
  • 1
  • 9
1
vote
1 answer

JAXB2 generates getters/setters with primitive types for optional attributes

We are using jaxb2 to generate Java code from xml schema definitions for some external data. The project is quite old and used the maven-jaxb-plugin 1.1.1. We want to update to jaxb2-maven-plugin which will also use jaxb2, but we found some…
Jens
  • 9,058
  • 2
  • 26
  • 43
1
vote
0 answers

JAXB bindings ignore attribute on generating JAXB classes

I have a schema (.xsd) and on generation using xjc would like to ignore some attributes being generated in the JAXB classes. I can remove them manually once generated, but every time when schema changes, it is quite a manual task to remove from the…
ulab
  • 1,079
  • 3
  • 15
  • 45
1
vote
1 answer

How do i exclude a field using a bindings file when using jaxb2 basics to generate the toString method

There is some documentation at the old site but it is unclear how to apply the configuration when using a bindings file. Here is my maven configuration that i use to add toString, equals etc to my generated JAXB objects.
dan carter
  • 4,158
  • 1
  • 33
  • 34
1
vote
2 answers

JAXB2 Basics simplify plugin throws "Cannot find the declaration of element 'simplify:property'" exception

I'm trying to use the jaxb2 basics "simplify" plugin but I'm always receiving the following exception... [INFO] --- jaxws-maven-plugin:2.2:wsimport (default) @ dsmlv2-jaxws --- [INFO] Processing:…
httPants
  • 1,832
  • 1
  • 11
  • 13
1
vote
2 answers

JAXB: using @XmlID along with Hibernate @Id

I have following hibernate property: @Id() @GeneratedValue(strategy = GenerationType.AUTO) private Long id = null; I want to add JAXB annotation @XmlID to this id but @XmlID can only be applied to String data types. How can I solve this…
Anurag Sharma
  • 2,409
  • 2
  • 16
  • 34
1
vote
1 answer

JAXB Binding Unsupported binding namespace "http://www.w3.org/2001/XMLSchema"

I have the following XSD which I'm generating JAXB bindings from... (only left relevant portions for this question):
alessandro ferrucci
  • 1,261
  • 2
  • 24
  • 48
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
1 answer

how to generate @TABLE tags using jaxb2 maven plugin

Hi I have followed some tutorials and written a schema which is as follows :
Ruby
  • 873
  • 5
  • 20
  • 47
1
vote
0 answers

jaxb:bindings, Separating classes from wsdls (the same location, and different target namespaces). What about wsdlLocation attribute?

I have two wsdls: ServiceA.wsdl(with targetNamespace='targetA'), and ServiceB.wsdl(with targetNamespace='targetB'). Both of them, are located in the same location, but each of them belongs to different target namespace. I'd like to separate java…
1
vote
1 answer

Validate an XML generated using JAXB Classes (not by XSD)

If XML is generated by JAXB classes(not by XSD), I don't have an XSD to validate. How do I validate the XML? Does the JAXB does validation of XML automatically before it starts unmarshalling?
pingu
  • 645
  • 3
  • 11
  • 21
1
vote
1 answer

xjc / jaxb2-commons interface binding issue, customization attached to the wrong place

I'm trying to add an interface using the jaxb2-basics artifact from the jaxb2_commons maven group. My pom.xml contains the following dependencies javax.xml.bind jaxb-api
Edwin Buck
  • 69,361
  • 7
  • 100
  • 138
1
vote
1 answer

JAXB Parsing of similar xml files

I have different XML returns that I want to parse with JAXB with annotated classes. Many of the XML files share a similar top structure and with the contents of an inner tag that can vary. Since we sent the ContextInstance a class and not an…
Streamweaver
  • 375
  • 2
  • 8
1
vote
1 answer

Jaxb Simplify Plugin

i try to use the simplify plugin to simplify the generated code. I have a defined type:
wrm
  • 1,898
  • 13
  • 24
0
votes
1 answer

jaxb2_commons:jaxb2-basics does not work with com.intershop.gradle.jaxb 6.0.0

I tried to use new version of com.intershop.gradle.jaxb:6.0.0 with gradle:8.1.1 to generate java classes from wsdl. But I need jaxb2-basics extension to use '-XtoString' parameter. When I add jaxbext 'org.jvnet.jaxb2_commons:jaxb2-basics:1.11.1' to…