jaxb2 Questions

1

I am actually using a schema first approach, however I hit a roadblock with the "ominous" JAXB Map problem! and worked around it by switching to a code first approach for this one. Now I'd like to ...
Neilla asked 19/4, 2016 at 9:24

4

I am using Jaxb 2.0 api without using XSD, and have created the content model using annotations. I want to write a Junit test for the class which does the marshalling . My original plan was to comp...
Fusiform asked 25/8, 2012 at 20:3

2

I am working on a web service using spring-mvc and Jaxb2Marshaller. I have two classes, both annotated with the same @XmlRootElement name @XmlRootElement(name="request") class Foo extends Astra...
Invest asked 3/3, 2011 at 8:28

1

I generate Java files from an XSD using namespaces. When the corresponding Java objects are serialized to XML the namespaces prefixes are ns1, ns2 ... There seems to be three ways to control the pr...
Sepulveda asked 4/5, 2016 at 9:51

2

Solved

My pom looks like <plugins> <plugin> <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> <version>0.12.3</version...
Doubleganger asked 26/4, 2016 at 10:48

1

Solved

I am coming from Node.js background and have quite a good understanding of RESTful web services. Now I am trying to build RESTful web services using Java. I understand core Java but complete...
Ganymede asked 16/3, 2016 at 10:28

4

Solved

For example, I've got a simple schema which imports another schema. The second schema (urn:just:attributes, just-attributes.xsd) just defines an attribute group. <?xml version="1.0" encoding="U...
Nutritionist asked 30/12, 2009 at 22:58

1

INFO - Sample code I've set up sample code (SSCCE) for you to help track the problem: https://github.com/ljader/test-cxf-base64-marshall The problem I'm integrating with 3rd party JAX-WS servic...
Serin asked 10/8, 2015 at 19:25

2

Solved

I am working on an application that uses XJC to generate Java POJOs from XSDs. There are dozens of schemas, and that number will grow. The application also needs to be able to handle different vers...
Gabie asked 16/6, 2015 at 13:29

3

Solved

I'd like to get the maven-jaxb2-plugin to do not write the 'disclaimer': This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.2-hudson-jaxb-ri-2....
Sapphire asked 1/8, 2011 at 13:40

3

My Jaxb has created a Enum class based on the XML schema set up. **enum Fruit { APPLE,ORANGE; }** I am using a SOAP UI to check my web service. Since it is a free form entry, if i give a wrong...
Geostatic asked 27/8, 2012 at 18:16

11

I just started learning the Virgo Web Server. I'm trying to work with Jakcson JSON in Spring MVC application. At this stage I can not get a GET request serialized object. The server returns "406 No...
Brigham asked 7/12, 2010 at 9:12

1

Solved

Here is a test case using a file from SCORM for imsmanifest,xml. This XML has been in use for about 5 or more years, and being a standard I don't want to change it unless required to get this to wo...
Semiotics asked 10/8, 2014 at 2:31

2

Solved

The class com.sun.xml.bind.v2.model.annotation.AnnotationReader was part of jaxb-impl 2.1.6, but has been removed in 2.1.7. Does anybody know why?
Caboodle asked 20/11, 2014 at 18:26

1

Solved

I have set up a test unit at github. Could someone please check why this is not working though the XML to unmarshal looks good? https://github.com/jjYBdx4IL/misc-tests/blob/master/src/test/java/jj...
Intestinal asked 28/10, 2014 at 21:17

2

Are you aware of any good JAXB Plugin which generated Builder pattern classes for the generated JAXB classes? Composing domain using JAXB generated classes is really nasty. I saw a plugin someone ...
Butterfly asked 10/12, 2013 at 8:13

2

Solved

@XmlElements({ @XmlElement(name = "house", type = House.class), @XmlElement(name = "error", type = Error.class), @XmlElement(name = "message", type = Message.class), @XmlElement(name = "animal"...
Apartheid asked 26/12, 2013 at 9:24

1

When generating Java beans from a XSD with XJC, I need to map xs:integer to Integer rather than BigInteger. I added a javaType tag to my JAXB customization file (as said in many answers from this s...
Partiality asked 29/4, 2013 at 13:45

1

Does anybody know how to attach custom XmlAdapter to objects contained in heterogenous list (like List)? For example - suppose we have a container class with a list of miscelaneous objects: @XmlRo...
Mello asked 6/3, 2013 at 16:19

1

Solved

I have created three JAXB class : Home , Person , Animal . Java Class Home have variable List<Object> any that may contain Person and/or Animal instance . public class Home { @XmlAnyEleme...
Apery asked 2/12, 2013 at 13:29

2

Solved

This is my scenario. I have a generic class: public class Tuple<T> extends ArrayList<T> { //... public Tuple(T ...members) { this(Arrays.asList(members)); } @XmlElementWrapper(na...
Catabolite asked 21/10, 2011 at 14:40

0

My root question is how to benefit from the 'unchecked generics type' Eclipse compiler warning, but not have the list of those warnings in the Problems view polluted by noise from java classes whic...
Cranach asked 11/11, 2013 at 22:30

4

Solved

We have been using JAXB 2.1 for a long time in our system. We have a platform that is built with Ant and generates a bunch of bundles that are deployed in an OSGi runtime. We use Java SE 6. We use...
Asepsis asked 9/9, 2011 at 12:2

2

Solved

I have this @XmlRootElement class Person. @XmlRootElement class Person { private String desc; } and the return content is {"Person": {"desc": "abc"} } and I really don't want the root wr...
Portia asked 24/8, 2013 at 10:19

2

Solved

I generate WSDL files for several web services (from the server service definitions) where I have already XML schemas (*.XSD) for the beans used as parameters. How do I tell java2ws to reference th...
Nitroparaffin asked 14/7, 2011 at 17:21

© 2022 - 2024 — McMap. All rights reserved.