Top "Jaxb" questions

Java Architecture for XML Binding is the Java standard for working with XML as domain objects.

How do you customize how JAXB generates plural method names?

We are using JAXB to generate Java classes and have encountered a few cases where generated plural method names are …

java xml jaxb jaxb2
Override declared encoding during unmarshalling with JAXB

I have an XML file with its encoding set within it: <?xml version="1.0" encoding="ISO-8859-15"?> but really …

java encoding jaxb unmarshalling
JAXB, XJC -> create multiple class files

I'm using JAXB and XJC for first time. I would like to generate Java classes from XML file so I …

java xml jaxb xjc
Jersey can produce List<T> but cannot Response.ok(List<T>).build()?

Jersey 1.6 can produce: @Path("/stock") public class StockResource { @GET @Produces(MediaType.APPLICATION_JSON) public List<Stock> get() { Stock …

java json jaxb jersey generic-list
Exception in thread "main" javax.xml.bind.PropertyException: name: eclipselink.media-type value: application/json

I'm attempting to follow the example located here but get an javax.xml.bind.PropertyException. I receive this exception because …

java json jaxb eclipselink moxy
Unmarshalling an XML using Xpath expression and jaxb

I am new to JAXB and would like to know if there is a way by which I can unmarshall …

java xpath jaxb unmarshalling
Which artifacts should I use for JAXB RI in my Maven project?

Historically, I always used the following JAXB RI artifacts in my Maven projects: com.sun.xml.bind:jaxb-impl - Runtime …

java maven jaxb jaxb2
Where to include jaxb.properties file?

I have REST (Jersey) webservice that makes use of some data objects that are marshalled/unmarshalled to/from XML. The …

properties jaxb eclipselink moxy
Generating XSD schemas from JAXB types in Maven?

I'm trying to basically generate XSD schemas from my model classes annotated in JAXB using a Maven plugin. Here's the …

maven jaxb schemagen
How do I prevent JAXBElement<String> from being generated in a CXF Web Service client?

I'm trying to create a web service client using CXF to consume a WCF web service. When I use wsdl2…

java wcf web-services jaxb cxf