Questions tagged [cxf-codegen-plugin]
A Maven plugin which can generate Java artifacts from a Web Services Description Language (WSDL) file, using Apache CXF.
108
questions
0
votes
0
answers
20
views
cxf-codegen-plugin generating java classes with initialised properties
I have upgraded cxf codegen plugin in my project to version 3.5.0 and now I am getting generated class with initialised properties. Following is the example :
@XmlAccessorType(XmlAccessType.FIELD)
...
1
vote
0
answers
21
views
method has @XmlElementMapping on it, but it doesn't return a sub-type of JAXBElement
I am trying to deploy my web service on JBOSS EAP 7.2.
But at the deployment stage I get an error. Doesn't my ObjectFactory class return a JAXBElement in the createCertificateTypeSerialNumber method?
...
0
votes
0
answers
68
views
Why is camel-cxf throwing Could not find portType ServiceConstructionException?
I have a camel route which is trying to login via an informatica web service using apache-cxf.
This is how the route looks :
String WS_URL = "cxf://http://infIntegration?serviceClass=com.inf....
0
votes
0
answers
107
views
Spring ws cxf-codegen-plugin not parse wsdl
I'm studying soap. Everything works fine with test cases, but when I move on to calling real services, problems begin that I cannot solve. I tried different plugins for generating code from wsdl but ...
0
votes
0
answers
361
views
updating log4j2 to 2.15.0 breaks cxf wsdl2java
I am updating log4j2 from 2.14.1 to 2.15.0 in a maven project that uses cxf's wsdl2java (version 3.4.5). Updating causes the pipeline to break with the following exception during the generate-sources ...
0
votes
1
answer
231
views
W3CEPRJaxbBinding_jaxb22.xml; lineNumber: 20; columnNumber: 162; Unexpected <bindings> appears at line 20 column 162
I am trying to update my maven SpringBoot application with the latest Java 17 and every dependency to the latest version.
cxf-codegen-plugin started to throw interesting exception which I don't really ...
0
votes
0
answers
35
views
Identical elements in wsdl cause ObjectMapper collision using cxf-codegen wsdl2java
I have a wsdl with elements declared this way
<xs:import namespace="http://ws.servicename.com/"/>
<xs:element name="checkArchivePeriodRequest" type="tns:...
1
vote
1
answer
82
views
Skip maven plugin in parent project
I need skip plugin execution in parent pom project, but execute it in child projects. How do it this? Child projects use cxf-codegen-plugin with wsdl in path ${basedir}/src/main/resources/${wsdl-name}....
0
votes
1
answer
130
views
cxf-codegen-plugin:3.4.2:wsdl2java doesn't produce proper Javadoc
The classes' Javadoc that's produced by cxf-codegen-plugin:3.4.2:wsdl2java looks like the following here:
/**
* <p>Java class for RequestType complex type.
*
* <p>The ...
0
votes
0
answers
679
views
Failed to execute goal cxf-codegen-plugin:3.2.4:wsdl2java (generate-sources) project OAS: org.apache.cxf.helpers.JavaUtils.isJava9Compatible()Z
I have tried changing the compiler and compliance from 1.8 to 11.0 with no change. I suspect it has to do with the version of Karaf (4.3) and the libraries / bundles / packages associated with that ...
0
votes
1
answer
1k
views
How do I repair a cxf-codegen-plugin throwing an error in POM
I want to use cxf-codegen-plugin to generate-sources with wsdl2java in my camel maven project.
I added the plugin as follows to my pom.
<plugin>
<groupId>org.apache.cxf</groupId>
...
0
votes
1
answer
76
views
''Fault' is already defined [ERROR] (related to above error) the first definition appears here" could you help me
How can ı fix
'Fault' is already defined
[ERROR] file:Services.wsdl [16541,13]: (related to above error) the first definition appears here
pom.xml cxf plugin:
[1]: https://i.stack.imgur.com/Or3q3....
1
vote
0
answers
308
views
Apache CXF Generated JAXB class has @XMLElement with Blank/Empty "" Namespace for External Schema/XSD
I am using Apache CXF maven cxf-codegen-plugin (wsdl2java) to generate JAXB classes from wsdl which includes external XSD and uses the complex type in XSD to define element.
pom.xml Snippet -
&...
0
votes
0
answers
178
views
XML Type Conflict in JAXB (CXF/WebServices)
I am trying to run CXF WebService on Tomcat. When I deploy the WAR file, I get the following error:
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
at org.apache....
0
votes
0
answers
302
views
CXF custom package name
I'm using the cxf-codegen-plugin to geneare java classes from WSDL. See below for the configuration.
<plugin>
<groupId>org.apache.cxf</groupId>
<...
1
vote
0
answers
245
views
Failed to execute goal org.apache.cxf on java-9
Why I am facing the org.pache.cxf issue's even if I am using the same version which apache cxf document mentioned that apache cxf with java 9 supports 3.3.X versions but I am getting errors. Any help ...
1
vote
0
answers
57
views
XStream not loading legacy QName XML
I have legacy XML files that are saved using some ancient XStream.
Now I'm using the latest XStream, and trying to load the data.
It successfully loads the date and the int, but the String is blank.
...
1
vote
0
answers
567
views
Class [ com.sun.xml.ws.assembler.jaxws.HandlerTubeFactory ] does not implement [ com.sun.xml.internal.ws.assembler.dev.TubeFactory ] interface
I have tried to generate the java code from wsdl2java by using cxf-codegen-plugin .
Code was generated and can see the response in my eclipse test class(tried to call few methods and getting result ...
4
votes
2
answers
1k
views
How make cxf-codegen-plugin generate Webservices from jakarta.xml.ws?
Migrating from Java 8 to Java 11.
Updated cxf-codegen-plugin from version 3.2.0 to 3.3.6.
Plugin still generates Java stubs from wsdl files using packages from javax.jws.* instead of from jakarta.jws.*...
0
votes
0
answers
1k
views
WSDLException faultCode=PARSER_ERROR - When using schemaLocation: MyService?xsd=myschema.xsd
I'm using a 3rd party WSDL that includes a XSD definition. I've downloaded the WSDL and XSD and placed them in local folders: ${project.basedir}/src/main/resources/wsdl/ and ${project.basedir}/src/...
1
vote
0
answers
65
views
Apache cxf not generating sources in second plugin
I have a problem to generate sources 2 times from same wsdl but with different argument.
In effect, second cxf-codegen-plugin is completely ignored only because its the same url with the first cxf-...
0
votes
1
answer
691
views
Why does the cxf-codegen maven plugin fail to run the wsdl2java goal on OpenJDK 10?
The following plugin invocation keeps failing:
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</...
1
vote
2
answers
1k
views
cxf-codegen-plugin could not find artifact com.sun:tools:jar:1.8.0 from C:\Program Files\Java\jre1.8.0_251/../lib/tools.jar
I am using a springboot application and generating stub using cxf codegen plugin.
I have JDK_HOME configured to run my springboot project.
After upgrading the cxf-version from 3.2.4 to 3.3.6, I see ...
3
votes
0
answers
876
views
apache cxf is still using the old dependency in the generated code
I'm using java 11 and apache cxf 3.3.5, which supposes to support the java 11. But some generated classes are still importing javax.xml.ws instead of , which has been removed from java 11.
My plugin:...
0
votes
2
answers
1k
views
Add autoNameResolution in Apache CXF plugin in pom.xml
How to add autoNameResolution in Apache CXF plugin in pom.xml? I have tried to add in defaultOptions tag as well as wsdlOption tag but no luck.
0
votes
0
answers
346
views
Can't generate soap envelope from cxf-codegen-plugin plugin
We are facing issues generating the correct SOAP request from wsdl using apache cxf-codegen-plugin. The request that is being fired by the clilent is missing the SOAP envelope and SOAP body tags. Is ...
0
votes
1
answer
190
views
Error with maven cxf-codegen-plugin XMLStreamException: Attribute limit
I am using maven cxf-codegen-plugin to generate a client for a really big WSDL, here is the example of the configuration:
<plugin>
<groupId>org.apache.cxf</groupId>
<...
4
votes
2
answers
3k
views
Generated sources from WSDL using WSDL2Java generates classes with deprecated API javax xml ws on java 11
On my project I am using java 11.
based on a WSDL file, i generate code classes using cxf-codegen-plugin maven plugin.
the classes generated, use javax.xml.ws.* and other APIs on java 11.
example :
...
2
votes
0
answers
555
views
Classes from WSDL aren't auto-generated by CXF
I'm trying to port a SOAP consuming application to JAVA. I'm having issues making cxf-codegen-plugin to read the WSDL, which is from a third party and it actually works. I'm guessing that the issue is ...
0
votes
0
answers
2k
views
SOAP service working fine SOAP UI but parsing WSDL in Java code throws exception
SOAP service is working fine in SOAP UI but when I parsed WSDL, either calling direct from URL or from the classpath, two exceptions are thrown. I tried with 2 maven plugins cxf-codegen-plugin and ...
1
vote
1
answer
824
views
CXF-SOAP gradle-plugin that works in java-11?
We have a CXF-SOAP service built with gradle,
and trying to migrate it from java-8 to java-11.
Is there any cxf-plugin for gradle available, that works under java-11?
Or any demo/example of a cxf/...
1
vote
1
answer
2k
views
IllegalAnnotationExceptions: Two classes have the same XML type name. Code generated by CXF plugin
I have two WSDLs from which I generate Java code using maven cxf-codegen-plugin (org.apache.cxf). Both of them use the same namespace and contains complex types of the same name which was reason why I ...
0
votes
1
answer
342
views
Resolve collision in class names when converting from WSDL to Java
I am converting WSDL to Java with CXF. When -autoNameResolution key is enabled CXF generates many files with the same content. Is there any way to avoid it?
To avoid nested static classes I've ...
0
votes
0
answers
113
views
cannot generate sources after switching os
i recently switched from Ubuntu to Windows 10 and i can't generate sources any more. the relevant section of my pom.xml is as follows
<plugin>
<groupId>org.apache.cxf</groupId>
...
1
vote
0
answers
119
views
Maven cxf-codegen-plugin with NTLM Authentication - fails with java.io.IOException: Server returned HTTP response code: 401 for URL
I'm trying to generate java code using cxf-codegen-plugin for a SOAP webservice that is secured over NTLM. I'm not sure how do pass on the username/pwd/domain information to maven to connect to the ...
1
vote
0
answers
797
views
WSDL2JAVA - cxf-codegen-plugin - produces no class with @XmlRootElement
I'm facing an issue and after few days searching for an answer I decided it's better to ask for online help.
So I have WSDL from a client I can't modify. I put here an equivalent version :
<?xml ...
13
votes
2
answers
31k
views
CXF codegen maven plugin doesn't work OpenJDK 11
I have been working with JDK 9 & 10 and CXF codegen plugin 3.2.5 and 3.2.6 with no problems but, today I'm trying to update my codebase from Oracle JDK 10 to OpenJDK 11 build 28, but I'm always ...
0
votes
1
answer
892
views
UnmarshalException : camel soap unmarshaling error unexpected element
[com.sun.istack.SAXParseException2; lineNumber: 1; columnNumber: 1; unexpected element (uri:"http://service.example.com/", local:"custDetails"). Expected elements are <{http://schemas.xmlsoap.org/...
1
vote
0
answers
286
views
How to generate case sensitive fields in java from wsdl using cxf-codegen-plugin?
I'm using cxf-codegen-plugin and try to generate java from wsdl.
In my xsd schema I have following element
<xsd:element name="SomeElement">
<xsd:complexType>
<xsd:attribute ...
1
vote
0
answers
468
views
How to use cxf-codegen-plugin and Apache Camel
i want to create a camel route to a Soap Endpoint. I use Eclipse.
First step is to insert this code to pom.xml:
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>...
3
votes
0
answers
2k
views
Specify JAXB/XJC version used by cxf-codegen-plugin
I am generating code with cxf-codegen-plugin. Current version (3.2.4) uses JAXB/XJC version 2.2.11.
How do I upgrade used JAXB/XJC to a later version, for instance 2.3.0?
Here's what I've tried so ...
7
votes
4
answers
3k
views
Getting cxf-codegen-plugin working on Java 9
I've been trying to get cxf-codegen-plugin working on Java 9 with some resistance. So far I've added java.se.ee to the runtime modules and added the necessary dependencies to maven.
However, when I ...
1
vote
1
answer
95
views
WSDL field name differs when sending request
I'm sending requests to SOAP WS from Java project.
By wsdl I have generated required sources using:
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId&...
2
votes
1
answer
12k
views
cxf.version 3.2.1 giving org.apache.cxf.tools.common.ToolErrorListener error
I am trying to build a mavnen project with cxf-codegen-plugin. I am using cxf version 3.2.1, maven compiler plugin 3.7.0 ,java version 8 and I am building this in Intellij idea on ubuntu platform. ...
1
vote
1
answer
2k
views
Generate custom namespace prefix with CXF/JAXB (WSDL-first)
I am migrating a webservice from Weblogic to JBoss. One of the existing clients uses a parser that is sensitive to the namespace prefixes used and I'm not able to influence this. The migration has ...
1
vote
0
answers
707
views
CXF Client error with xs:dateTime converting to XMLGregorianCalendar
We recently upgraded an old Java 7 application to Spring Boot and the latest versions of Spring boot (along with moving it to Java 8). After re-consuming web services that utilize xs:dateTime in the ...
0
votes
1
answer
627
views
cxf-codegen adding superfluous underscore in enum member name
I have the following generated enumeration type. The issue I have is that for some reason (presumably capitalisation) that an underscore is inserted in the NCBonus value.
I would like to know how I ...
2
votes
1
answer
1k
views
Error parsing xmldsig-core/xmldsig-core-schema.xsd
I am generating the client code from a wsdl file. Without any change on code, it stopped working and now I'm getting the following error message:
[ERROR] Failed to execute goal
org.apache.cxf:cxf-...
1
vote
0
answers
600
views
CXF : org.apache.cxf.interceptor.Fault: wrong number of arguments while invoking
I'm implementing a simple client using apache cxf and the codegen maven plugin (both release 3.1.11).
Here is my sample wsdl:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions ...
3
votes
1
answer
2k
views
WSDL cxf custom bindings
I am trying to change the class names of cxf generated source from an inline WSDL. The bindings I specify using xpath keeps getting ignored.
Below is my binding file:
<jaxws:bindings
xmlns:...