Top "Jaxb" questions

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

Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.model.annotation.AnnotationReader

You might think that following issue is very simple, but I don't know what I did wrong here. I feel …

java maven jaxb
JAXB Marshalling Unmarshalling with CDATA

I am trying to do marshaling with JAXB. My output is like this: <?xml version="1.0" encoding="UTF-8" standalone="yes"?&…

java xml jaxb
java.util.List is an interface, and JAXB can't handle interfaces

I seemed to get the following exception when trying to deploy my application: Caused by: com.sun.xml.bind.v2.…

java web-services jakarta-ee jaxb jbossws
java.net.MalformedURLException: no protocol

I' m writing a class to run xjc in java. my code goes as follows: URL url = new URL("C:\\…

java url jaxb xjc
JAXB marshalling Java to output XML file

problem is how do i generate XML file output instead of system.out? package jaxbintroduction; import java.io.FileOutputStream; import …

java xml jaxb marshalling
What's the point of JAXB 2's ObjectFactory classes?

I'm new to using JAXB, and I used JAXB 2.1.3's xjc to generate a set of classes from my XML …

java jaxb
JAXB - Ignore element

Is there any way to just ignore an element from Jaxb parsing? I have a large XML file, and if …

java xml jaxb unmarshalling
Error unmarshalling xml in java-8 "secure-processing org.xml.sax.SAXNotRecognizedException causing java.lang.IllegalStateException"

The following code worked fine in Java 7 import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax.xml.…

java xml-parsing jaxb java-8
I want to convert an output stream into String object

I want to convert an OutputStream into a String object. I am having an OutputStream object returned after marshalling the …

java jaxb
Generating a JAXB class that implements an interface

I'm currently using JAXB to generate java classes in order to unmarshall XML. Now I would like to create a …

java xsd jaxb xjc jaxb2-basics