Skip to main content

Questions tagged [xjc]

XJC is a JAXB tool for compiling XSD (XML Schema) to Java source code.

1 vote
0 answers
14 views

Error in Generating an Java POJO from XML Schema that Contains Imports

I am working on a project where I need to automatically generate code for a POJO-like object from an XML Schema (XSD) file. To achieve this, I have created a class that takes the file path of the XSD ...
Afonso Oliveira's user avatar
0 votes
0 answers
30 views

Generating Java classes from XSD with enumeration containing non-ascii values

Using Java 17 and Gradle-plugin com.github.bjornvester.xjc' version '1.8.2 I want to generate java classes from an XSD schema. The java classes is to be used for values read from database. The values ...
StarMcSnow's user avatar
-1 votes
1 answer
52 views

Getting The prefix "jxb" for element "jxb:bindings" is not bound exception after migrating to jaxb3/java21

While migrating a service to java21 and jaxb3.0, the class generation for xjb file from a wsdl is giving a 'org.xml.sax.SAXParseException; XXX The prefix "jxb" for element "jxb:bindings&...
Chris's user avatar
  • 1,158
0 votes
0 answers
68 views

Handling Serializable type in Spring SOAP Client

I have to call a very old SOAP service from my Spring Boot application. I use the cxf-codegen-plugin to generate the java stubs at compile time using wsdl2java. Now, I have these elements that are ...
VeePee's user avatar
  • 23
0 votes
0 answers
54 views

Custom annotation processing during Jakarta XML schemagen

I want to generate an XSD schema for existing, jaxb annotated, DTO's. I can't easily change the DTO code or the serialization formats. I have two problems: The DTO's use custom validation annotations ...
Taren's user avatar
  • 36
0 votes
0 answers
33 views

Can I run xjc to generate classes with custom line endings?

I have a project which generates JAXB classes with XJC. I use pycobertura which needs the sources of old and new version of the project. The sources jar generated by the project contains all sources ...
Sybuser's user avatar
  • 1,316
0 votes
0 answers
23 views

XJC not generate correctly mixed elements

I have a application tha need genarate a xml file and send to another app. Part of DTD of this XML is: <!ELEMENT Description ( #PCDATA | ShortName )* > <!-- mixed: string and ShortName --> ...
Rafael Santos's user avatar
1 vote
1 answer
67 views

Java Annox library relocated

I’m trying to use the Annox library, but it seems that java.net has been shut down. I would like to know where the library was relocated to. I always receive the following error message: org.xml.sax....
Patrick 's user avatar
0 votes
1 answer
151 views

Using xjc to add additional attribute to jaxb class

I have a huge xsd file which I would like to convert to jaxb classes using xjc. I have done that successfully, both using maven and manually using the xjc.sh script. But I do have one very specific ...
Gogi's user avatar
  • 1,695
1 vote
1 answer
69 views

JAXB is not generating enum classes from XSD simple types

I'm trying to migrate to a newer version of an API we use and therefore had to exchange some XSDs. The main difference is that most simple types are now encapsulated within xsd:elements. Now, with the ...
Noel93's user avatar
  • 156
0 votes
1 answer
60 views

How to make JAXB Classes with parent child relationship

I have problem to make JAXB classes for parent-child relationship with JAXB / XJC parent-child-parent navigation I think implementation to void afterUnmarshal(Unmarshaller, Object parent). It should ...
Noobgrammer's user avatar
0 votes
0 answers
33 views

Prevent JAXB from marshalling empty content for type with length restriction

I'm using CXF 4.0 with JAXB as data binding to generate webservices with a top-down approach. The WSDL is given to me, which means I cannot change it. I'm currently struggling to properly marshall ...
Stov's user avatar
  • 13
0 votes
0 answers
75 views

What is the best way to validate incoming json data using Jackson in Spring boot?

I am using spring boot v 2.7.1 with Java 17. I define how data structure should look like in xsd. Then I use xjc to convert it to Java classes. The xjc markers mandatory elements with annotation @...
Fleky's user avatar
  • 11
0 votes
0 answers
89 views

Jaxb2 "Expected elements are (none)" when unmarshalling a java object from a XML document

I have a two schemas, schema1.xsd and schema2.xsd schema1.xsd imports schema2.xsd I'm able to generate two packages com.package1 and com.package2 through xjc (pom.xml configuration) When I try to run ...
Alexandre Gomes's user avatar
0 votes
1 answer
145 views

Best way to handle identical data within two different Java types generated from XSD files

I am pretty much stuck finding the best way to solve this. My case is that I have a provider which gives me XSD files to generate the types I will use to call their SOAP api. Those XSD files sometimes ...
condiorno's user avatar
  • 151

15 30 50 per page
1
2 3 4 5
50