jaxb2 Questions

4

Solved

I'm upgrading a project to jaxb 2.2.7 from version 1.x. I've got the app working some of the time, but on some responses I see this: java.lang.RuntimeException: javax.xml.bind.MarshalException - ...
Heaver asked 14/1, 2014 at 15:55

2

JAXB simple binding mode modifies collection names to their plural 'version', e.g. "additionalData" becomes "additionalDatas". Is there any solution to change this behavior? I need to have a Java f...
Pirate asked 1/3, 2011 at 14:6

3

I am trying to generate the java classes from a WSLD file, that uses basic authentication. Although there are many plugins out there, I have to use the following one: org.jvnet.jaxb2.maven2:maven-...
Langue asked 21/8, 2017 at 10:56

2

Solved

Historically, I always used the following JAXB RI artifacts in my Maven projects: com.sun.xml.bind:jaxb-impl - Runtime com.sun.xml.bind:jaxb-xjc - Schema compiler com.sun.xml.bind:jaxb-jxc - Sche...
Firecracker asked 16/10, 2014 at 20:34

2

Solved

I'm trying to convert multiple XSDs to POJOs in different packages using JAXB using the jaxb-maven plugin. I've set it up to use multiple execution blocks, the first execution block executes, then ...
Saline asked 24/3, 2014 at 11:37

6

Solved

I'm using jaxb2-marshaller to generate classes to communicate with a webservice. Java-classes are generated with use of some wsdl files. Everything is okay now, but when I'm trying to use some of ...
Agonizing asked 12/9, 2014 at 9:35

4

Solved

These days I've spent some time on JAXB for converting XSD to Java Class and vice versa. Here's a very good tutorial for beginners, http://www.journaldev.com/1312/how-to-generate-java-classes-from-...
Leadbelly asked 4/7, 2013 at 13:12

3

Solved

I'm having a strange problem when trying to run a maven build that uses the jaxb2 plugin to do JAXB codegen (see stacktrace below). The best that I can figure is that there's some implementation of...
Sunstone asked 30/9, 2010 at 15:55

1

Solved

I have the following error when trying to generate classes from my wsdl: Failed to execute goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.12.3:generate (CreateWebServiceAccountV1) on project h...
Modestomodesty asked 17/6, 2015 at 14:45

3

Solved

I am using spring WebServiceTemplate as a web service client programmatically i.e. without instantiating a spring container. I am using Jaxb2Marshaller for marshaling/unmarshaling. In my applicatio...
Measureless asked 13/8, 2010 at 15:49

11

Solved

The question is about JAXB Map marshalling - there is plenty of examples on how to marhsall a Map into a structure like follows: <map> <entry> <key> KEY </key> <value...
Houseboy asked 15/10, 2010 at 10:42

8

Solved

I have downloaded the Soap messages from a SOAP Service and trying to mock the Soap service by returning the downloaded messages. the following code shows how I am Unmarshalling the Soap message in...
Micronesia asked 22/3, 2013 at 11:37

2

Solved

I have XML specified the following: <xs:element name="getNewsResponse"> <xs:complexType> <xs:sequence> <xs:element name="newsItem" type="tns:newsList"/> </xs:sequen...
Selfwinding asked 15/3, 2018 at 12:12

2

Solved

During XML validation against an XSD file using JAXB I get JAXBExceptions in case of invalid XML files. I get the message of the exceptions by calling event.getMessage(). The resulting string is in...
Theme asked 9/7, 2015 at 16:38

3

Solved

According to Oracle documentation the schemagen tool is removed from the JDK as part of JEP 320 (http://openjdk.java.net/jeps/320). That JEP points to Maven artifacts that now supply the missing to...
Trant asked 23/7, 2018 at 18:27

2

Solved

I use REST and i was wondering if i can tell jaxb to insert a string field "as-it-is" into the outgoing xml. Certainly i count unpack it before returning, but i would like to save this step. @Xml...
Intrauterine asked 29/10, 2012 at 12:45

7

Solved

The code I'm working on is using jaxb2-maven-plugin from org.codehaus.mojo to generate Java classes from XSD schema. I'm looking for a way to automatically implement equals() and hashCode() methods...
Armhole asked 30/1, 2012 at 10:37

14

Solved

Trying to get past a class cast exception here: FooClass fooClass = (FooClass ) unmarshaller.unmarshal(inputStream); throws this exception: java.lang.ClassCastException: javax.xml.bind.JAXBElem...
Quarto asked 1/4, 2009 at 19:57

1

I have a couple of huge XML schema definition (XSD) files and I want to generate only for a subset of the defined types the corresponding Java classes. More precisely I have a list of "root" types...
Suited asked 2/11, 2011 at 16:33

2

I am using WsImport to generate some Java sources from a remote WSDL file. Note that this is being from inside a regular Scala project i.e. it is not being done in a Maven or Ant build: import com...
Ebenezer asked 3/10, 2017 at 18:5

2

Solved

I have got a problem, I'm trying to bind an XML where there are the name 'Contains' three times. So I read that it's possible to override node names with a binding file. At the moment it doesn't w...
Lith asked 22/9, 2015 at 11:51

2

Solved

I'm generating Java classes from a WSDL using the jaxws-maven-plugin's wsimport goal. Out of the box, this generates hideous classes and methods from the XML schema; e.g., a class called MYOBJECT f...
Gio asked 18/1, 2012 at 19:47

0

My XSD looks like this: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> ... <xs:element name="person"> <xs:complexType> ... <xs:attr...
Tiling asked 4/9, 2017 at 13:9

2

Solved

There is a placeholder answer over at the unofficial guide with a link to an article which (to me) seems quite unrelated. I use XJC to generate my JAXB classes and while most of them map to each o...
Pagas asked 7/9, 2010 at 11:51

0

When using the ObjectFactory class generated by JAXB (from an XSD), I'd like to store it in a field or even constant, so I don't have to pass it around between private methods. As far as I can tell...
Tropophilous asked 19/4, 2017 at 11:28

© 2022 - 2024 — McMap. All rights reserved.