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...
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
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)...
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...
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: ...
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...
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 ...
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...
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...
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...
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...
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...
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
- ...
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...
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...
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...
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
1 Next >
© 2022 - 2025 — McMap. All rights reserved.