jaxb Questions

2

Solved

In order to work with Jaxb, I need to have a normal java.io.File Object. As I do not want to have legacy code in a quite new project, I want to use java.nio.file.Path objects. As gradle resolves d...
Unroot asked 1/2, 2017 at 12:10

6

Current maven plugins like jaxb2-maven-plugin and maven-jaxb2-plugin generate code using the package javax.xml instead of the new jakarta.xml package of Jakarta XML Binding in Jakarta EE. It seems ...
Jarad asked 11/3, 2021 at 9:57

2

Similar to JAXB generating JAXB classes to a given XSD, does Jackson provide any utility to generate Jackson classes from XSD or JSON. JAXB class geberator has generated a set of classes for XSD s...
Habitue asked 16/4, 2015 at 13:45

6

Solved

I have dozens and dozens .xsd files that I want to auto-generate code for. A couple of the files have duplicate names that clash when I try to generate all of them at the same time. I am focusing...
Jenifferjenilee asked 13/7, 2011 at 15:18

15

Solved

Using spring, with this code : List<HttpMessageConverter<?>> messageConverters = restTemplate.getMessageConverters(); for(HttpMessageConverter httpMessageConverter : messageConverters)...
Quiddity asked 18/2, 2014 at 12:48

7

I am in the middle of upgrading my project from Java 8 to Java 17. My project use JAXB related JAR files. However, I am getting a lot of error while compiling the project and most of them are relat...
Wizardry asked 5/4, 2023 at 6:58

11

Solved

I am developing RESTEasy Example. In this example I am using all latest dependencies and deploying om tomcat 8.x version. I can successfully deploy the application but when I am launching the url: ...
Cyclic asked 30/3, 2016 at 18:36

4

Solved

A web service is returning an object defined by the WSDL to be: <s:complexType mixed="true"><s:sequence><s:any/></s:sequence></s:complexType> When I print out this ...
Cranio asked 31/1, 2012 at 13:23

2

I am trying to unmarshal an XML into a Java object using the jakarta.xml.bind.Unmarshaller but my XML does not contain some of the default namespaces as they are part of the XSD already. How to eit...
Bosun asked 1/3, 2024 at 15:18

9

Im trying to generate sources from a wsdl file, but I keep running into an error on my pom.xml that I believe might be my issue? Below is the error that I get from my pom, and my pom file. Also I c...
Rapier asked 13/2, 2015 at 14:9

7

Solved

I would like to introduce caching into an existing Spring project which uses JAXB to expose WebServices. Caching will be done on the level of end points. In order to do that classes generated from ...
Accalia asked 3/10, 2009 at 15:1

4

Solved

I am trying to unmarshal an XML. This is what my XML looks like <DeviceInventory2Response xmlns="http://tempuri.org/"> <DeviceInventory2Result xmlns:i="http://www.w3.org/2001/XMLSchema-i...
Trellas asked 5/12, 2013 at 20:39

15

Solved

Do you know of a JAXB setting to prevent standalone="yes" from being generated in the resulting XML? <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
Ditmore asked 10/11, 2008 at 14:32

5

Solved

i'm new to working with SOAP API's I have a soap response from an API <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <LoginResponse xml...
Exostosis asked 16/11, 2017 at 15:15

1

Previously I was using the Eclipselink Moxy NAMESPACE_PREFIX_MAPPER to provide the custom namespaces to my JaxbContext and Marshaller and everything was working as expected. But I want to move away...
Bacillary asked 7/3, 2024 at 16:17

2

Solved

When marshalling an object to XML with JAXB, it automatically generates namespace prefixes like ns2:. The system I have to communicate with unfortunately doesn't work with these default prefixes (d...
Bodoni asked 23/6, 2023 at 15:32

3

Solved

I am trying to use the same generated class but in separate packages. So the structure should look something like this: com.test.common -commonType.java com.test.A -objectA.java com.test.B -obj...
Bushido asked 4/11, 2011 at 18:16

3

Solved

Question: How do i make xjc/Jaxb generate the propper javaclasses for several schemas containing duplicate elementdefinitions in the same namespace? Information: I have three .xsd schemas: A,B an...
Bullroarer asked 13/3, 2012 at 12:30

2

Solved

I'd like to override package for my schema via binding .xjb file. It is done with: <schemaBindings> <package name="com.schema.common" /> </schemaBindings> JXC compiler...
Admit asked 7/2, 2019 at 1:47

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

1

I'm migrating my java project from 8 to 11 version. As javax.activation has been removed from JDK 11, so I added it to Maven pom.xml file : <dependency> <groupId>javax.activation<...
Nourish asked 31/1, 2019 at 13:36

1

I'm using String class as request object type at my SOAP request. I need to disable escaping of JAXB and wrote a code like this: @Bean public Jaxb2Marshaller jaxb2Marshaller() { Jaxb2Marshaller ja...
Nedi asked 7/1, 2022 at 16:52

13

Solved

I'm trying to run my Spring Boot application on Java 9, and I've faced with JAXB problem, which described in the guides, but didn't work for me. I've added dependency on JAXB api, and application s...
Tomika asked 19/8, 2018 at 9:21

46

Solved

I have some code that uses JAXB API classes which have been provided as a part of the JDK in Java 6/7/8. When I run the same code with Java 9, at runtime I get errors indicating that JAXB classes c...
Epanodos asked 23/4, 2017 at 17:40

3

Solved

I try to unmarhshal a file XML file (test.xml) with JAXB (javax.xml.bind.JAXB) but it gives me this error: [org.xml.sax.SAXParseException; systemId: file:/C:/Users/EXAMPLE/AppData/Local/Eclipse/wo...
Conjunction asked 8/7, 2015 at 13:6

© 2022 - 2025 — McMap. All rights reserved.