Questions tagged [cxf]

Apache CXF helps you build and develop services using frontend programming APIs, like JAX-WS and JAX-RS. These services can speak a variety of protocols such as SOAP, XML/HTTP, RESTful HTTP, or CORBA and work over a variety of transports such as HTTP, JMS or JBI.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

Interceptor for {..} has thrown exception, unwinding now org.apache.cxf.interceptor.Fault: Could not send Message

I am using a web service (https://cloud.mysond.it/service-ejb/FatturaElettronicaService?wsdl) and trying to use the method to import a document in the cloud, but when I try Eclipse gives me the error ...
alessia_b's user avatar
0 votes
0 answers
9 views

apache cxf Endpoint getInInterceptors() is not returning anything nor the getTypeClass of MessagePartInfo in jdk17

cxf version is 4.0.3 openjdk17 The below snippet is not returning any interceptors Endpoint endpoint = client.getEndpoint(); List interceptors = endpoint.getInInterceptors(); Though the other APIs ...
Abheek Dutta's user avatar
0 votes
0 answers
12 views

error occurs when getting data from webservice with apache.cxf dynamic client

I write a cxf dynamic client to get data from wsdl url, belowing is my client: public static String invoke(String wsdlUrl, String operationName, Object inputParams) { try { ...
hachi's user avatar
  • 3
0 votes
1 answer
51 views

CXFServlet cannot be cast to class javax.servlet.Servlet

I inheritaded a web service from my predecessor and I had to "actualise" the dependencies. That done, I'm trying to deploy it into Tomcat 9.0.75 and in the Log-File I get this error message: ...
Francesco's user avatar
  • 2,362
0 votes
0 answers
22 views

"Two classes have the same XML type name" when returning XML response in Quarkus

Quarkus version - 3.2.0.Final XCF version - 2.2.2 (tried also 5.2.0) Example Quarkus REST resource that returns XML response: @GET @Produces(MediaType.APPLICATION_XML) public MyResponse<MyEntity>...
Politechniczny's user avatar
0 votes
0 answers
13 views

CXF client - how to set SoapVersion on CXF port without Spring

I am consuming a soap 1.2 wsdl with springboot and CXF, however the request I am sending is being geneated with SOAP 1.1 namespace. I am running into soap fault. I am looking for a way to send a ...
Rahul Kumar's user avatar
0 votes
0 answers
14 views

CXF-Client generation fails with referenced Type can not be found in the schemas

I am trying to generate a client from a wsdl with apache cxf. But it fails with the message: Part <request> in Message <{[...]/wsdl}[...]auftrag> referenced Type <{http://www.w3.org/...
Björn Bause-Engel's user avatar
0 votes
0 answers
17 views

Implement xmlbeans with inner Java objects

I have the following java Objects: public class DataResponse { int code; String description; DetailProfile detail; IntResponse profile; } public class DetailProfile { String ...
Peter Penzov's user avatar
  • 1,524
0 votes
0 answers
22 views

Camel CXF on context startup

We're migrating our suits of applications from Camel 2 to Camel 4, I'm encountering several problem during the migration (as I expected) especially when we had to use the latest Wildlfy release and ...
ZeroBrush's user avatar
0 votes
0 answers
32 views

Tomee MultipartProvider didn't consider body as readable

During my java migration (8 to 17), I experienced some problems with Tomee plus 8.0.15 (inderectly Apache CXF, cxf shade 3.5.5). In my application, I use multipart/form-data in some requests, because ...
Charles Jourdan's user avatar
0 votes
0 answers
4 views

JBoss CXF policy type config?

I am migrating an application running inside Weblogic 12c to JBoss EAP 4.3. A piece of the application backend communicates with a secure remote webservice. I imported a trusted peer cert into my ...
1977's user avatar
  • 2,680
0 votes
1 answer
36 views

Why Logger name prints incorrect class name & How to customize that.?

Here is my codes of LogUtils class. Which I used to format my log line. But it prints incorrect Class name in there. How to fix it.? import org.apache.commons.lang.StringUtils; import org.apache.cxf....
PriyanWL2022's user avatar
0 votes
0 answers
93 views

jakarta.xml.ws.spi.Provider: org.apache.cxf.jaxws.spi.ProviderImpl Unable to get public no-arg constructor

- Issue: We are trying to update CXF to 4 version from 3.5.This we are doing alongwith Java 17 and Tomcat10. We faced many issues as part of the upgrade but now we are stuck with below error. - Error ...
Manish Shinde's user avatar
0 votes
0 answers
18 views

How to control the position of namespaces in java soap request

How can I change this soap request: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <Action xmlns="http://www.w3.org/2005/...
A. Gurey's user avatar
0 votes
1 answer
63 views

Quarkus CXF WSDL FileNotFound Exception running it on AKS

Works as it should locally, but not on the server. This is the error log: Caused by: java.io.FileNotFoundException: /home/vsts/work/1/s/src/main/resources/checkVatService.wsdl (No such file or ...
thathashd's user avatar
  • 1,022
0 votes
0 answers
34 views

How to rewrite registerFunction for DB2, in Hibernate 6.3.1.?

Here is my artifacts of Hibernate. I've upgraded them from 5.6.15 to 6.3.1 implementation (group: 'org.hibernate.orm', name: 'hibernate-core', version: '6.3.1.Final') implementation (group: 'org....
PriyanWL2022's user avatar
1 vote
1 answer
52 views

JAX-RS Apache CXF vs Jersey implementations. Encoding

Just wondering if such a code shouldn't return the same using different implementation of JAX-RS? I'm not really into Java. import java.util.*; import javax.ws.rs.client.Client; import javax.ws.rs....
KrzMar's user avatar
  • 21
0 votes
0 answers
151 views

Provider com.sun.xml.internal.ws.spi.ProviderImpl not found

I am upgrading the application to Springboot 3.1.2. I am using cxf 4.0.2 dependencies. Also having jakarta xml and com.sun jaxws-rt 4.0.1 dependencies. I am getting the below error javax.xml.ws....
java_cafe's user avatar
2 votes
4 answers
179 views

java.lang.IllegalStateException No Jetty ContextHandler, Jetty WebSocket SCI unavailable

I'm trying to deploy a SOAP-Webservice with: Tomcat 10 Apache CXF 4.0.2 Java JDK 17.0.6 The Service was running fine with Tomcat 7.0.27, Java JDK 1.7.45 and Apache CXF 3.0.2. After changing all ...
Lasmarinas's user avatar
0 votes
0 answers
32 views

CXF/Jetty Rest API Not Working After Eclipse/Java/CXF/Jetty Upgrade

We have inherited an Eclipse RCP application which was based on Eclipse 4.8 (photon) and Java 8. We have upgraded it to Eclipse 4.23 and Java 11. During the upgrade we had to update lot of 3rd party ...
nilesh vadar's user avatar
0 votes
0 answers
15 views

CXF Unmarshalling error: Unexpected Element

Application A provides the SOAP service endpoint and Application B is the consumer. Application A sends a response ProdDTO class ProdDTO { private String a1; private String h1; private ...
Stackforumuser's user avatar
0 votes
1 answer
30 views

Apache CXF list of uncorrelatedExchanges grows until memory is exhausted

I have a long-running CXF SOAP connection to a physical device. Over time, I see the org.apache.cxf.ws.addressing.soap.MAPCodec object retaining heap. It appears that the ConcurrentHashpMap ...
kc7bfi's user avatar
  • 61
0 votes
0 answers
23 views

CXF:can't parse JSON. Raw result: No message body writer has been found for class java.util.HashMap, ContentType: application/json

Basically Trying to send the response with HashMap :Map<String, Object> with response entity @GET @Path("/healthcheck") @ApiOperation(value = "Health Check", notes = &...
Thirukumaran's user avatar
0 votes
0 answers
24 views

Apache CXF logs are not getting suppressed

We have an embedded JAX-RS web service within a stand-alone Java application using Apache CXF with Spring and having a traditional web.xml deployment descriptor to configure the beans. When we invoke ...
user2594's user avatar
  • 386
0 votes
0 answers
32 views

set-jaxb-validation-event-handler config is not working

My client is sending an incorrect message (we are migrating from Weblogic10 to Tomee 8.0.15. The first one was more permissive with incorrect xml's acording with de wsdl), so I have been trying to ...
rfrp's user avatar
  • 167
0 votes
0 answers
16 views

Is Cxf modify Outbound Response Message?

I'm making Web service using CXF, nd i didn't set any Interceptor or message Capture. When i return Response my data charset is modified. my service code like this @POST @Path("/test") ...
nachoflavor's user avatar
0 votes
0 answers
22 views

Codegen Binding xml not Working for nested WSDLs schema files

I do have to create Java Classes based on an SOAPService, of which i do have multiple WSDLs and Schemas. This will fail due to naming Issues. "Property already declared" So i created a ...
Daniel Bo's user avatar
  • 2,518
0 votes
0 answers
54 views

Quarkus - No DEBUG logs appear from Java XML Digital Signature API

I'm trying to use the Java XML Digital Signature API (https://www.oracle.com/technical-resources/articles/java/dig-signature-api.html) together with Quarkus 3.2.4. As stated in the Oracle article to ...
xperjon's user avatar
  • 46
0 votes
0 answers
151 views

Why NoSuchFieldError in eclipse, even provided required dependencies.?

My project uses CXF JETTY JAKARTA CxfVersion=4.0.2 JettyjVersion=11.0.15 JacksonVersion=2.15.2 implementation ('com.fasterxml.jackson.jakarta.rs:jackson-jakarta-rs-json-provider:${jacksonVersion}') ...
PriyanWL2022's user avatar
0 votes
0 answers
24 views

Add HTTP headers to SOAP request with data from external API using Interceptor

I am attempting to implement a logic where I add some HTTP headers to my SOAP request before sending the request onwards to the target webservice. More specifically I am attempting to implement ...
martino's user avatar
  • 43
0 votes
0 answers
127 views

How to setup jetty server properly after jakarta migration

Here is my CXF web service application. When I upgraded javax to jakarta here shows the change and exception. cxfVersion=4.0.2 slf4jVersion=2.0.7 org.apache.cxf:cxf-rt-transports-http-jetty:4.0.2 org....
PriyanWL2022's user avatar
3 votes
0 answers
46 views

Cxf client JUnit: java.lang.ClassCastException: class MyService$MockitoMock$9v45s0v6 cannot be cast to class javax.xml.ws.BindingProvider

I have simple cxf client and trying to write simple unit test. For now I am not intereseted in integration test thats why I mock my service. In service implementation I need to get its current url: (...
SereneAtk's user avatar
0 votes
0 answers
28 views

How to use a zipped Maven artifact as wsdlArtifact in Apache CXF

I'm trying to generate Java code from WSDLs using the Apache CXF Maven plugin cxf-codegen-plugin where the WSDLs are contained in a Maven artifact of type zip. At the moment, I fetch and unwrap the ...
norb's user avatar
  • 77
0 votes
1 answer
112 views

How to disable CXF webservice listing page?

I am using cxf-spring-boot-starter-jaxws with Spring Boot for SOAP Services. The web application has the URL http://localhost:8080/abc/def/. The WSDL must be located at http://localhost:8080/abc/def/...
Stanja's user avatar
  • 11
0 votes
1 answer
421 views

minimal Apache CXF, Jakarta, Spring Boot 3, Kotlin, Gradle config fails

I try to setup a minimal Apache CXF webapp using SpringBoot3, Kotlin and Gradle, but the single endpoint simply isn't available. All tutorials for Apache CXF & SpringBoot were pretty old, even the ...
StephanS's user avatar
  • 843
0 votes
0 answers
27 views

Springboot and SOAP webservices error handling

I have an existing WSDL using which we have to create the SOAP webservices. We are able to get response but to handle errors thrown from cxf client we have nothing in place yet. So far : ...
Raghuveer's user avatar
  • 2,919
0 votes
1 answer
310 views

Quarkus - Apache CXF - HTTPException - HTTP response 403 ... when comunicating with http

I'm having this problem when consuming a SOAP webservice from a Quarkus application. The error I'm getting is: Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response '403: (POST http://...
brunomaso1's user avatar
0 votes
0 answers
6 views

How to enable the HTTP method overriding in CXF3

How to enable the HTTP method overriding in CXF3? According to cxf3 docuemntations, even though CXF supports overriding request methods, by default this is not allowed (since CXF 3.3.4) for a CXF ...
Udesh Athukorala's user avatar
1 vote
0 answers
690 views

cxf-xjc-plugin 4.0.0 + java17: javax.xml.bind.annotation and jakarta.xml.bind.annotation generated at random - why?

I have a project that generates code using cxf-xjc-plugin v4.0.0 as follows: <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-xjc-plugin</...
Graham Leggett's user avatar
0 votes
0 answers
26 views

Deploy Springboot 1.5.22.RELEASE on Websphere 8.5.5.20

Hello I deploy spring boot app v1.5.22.RELEASE on Websphere 8.5.5.20 => OK I use java version 1.8 and cxf-rt-transports-http and cxf-rt-frontend-jaxws v3.5.5 The problem is when i try to call the ...
El Mehdi Es-safi's user avatar
0 votes
1 answer
72 views

OpenApi integrate with apache camel-cxfrs

i want to generate openApi documentation based on my cxf services. i used the following resources: https://cxf.apache.org/docs/openapifeature.html when I start the service without using camel-cxfrs - ...
tim08's user avatar
  • 25
0 votes
0 answers
151 views

Missing requirement: org.apache.cxf.cxf-rt-transports-http 3.6.0 requires 'java.package; java.net.http 0.0.0' but it could not be found

We are upgrading jetty from version 9.4.30 to 10.0.15 and cxf from version 3.3.7 to 3.6.0. After upgrade, while building the repo, we are getting below error: Missing requirement: org.apache.cxf.cxf-...
nilesh vadar's user avatar
0 votes
0 answers
14 views

Implement SOAP "Gateway" with Apache CXF?

I have a service that uses requires SenderVouches authentication, which works fine for CXF-based Java applications. But now we need to integrate an .NET-based application that does not support ...
ciis0's user avatar
  • 343
0 votes
0 answers
201 views

Strange Errors after Upgrading Apache CXF from 3.4.10 to 3.5.6

I upgraded the CXF dependency of our webapp from 3.4.10 to 3.5.6. The upgrade required no further changes, and everything runs fine in my IDE (Eclipse 4.27 with OpenJDK 17.0.4.1 and Tomcat 9.0.76 on ...
Hok's user avatar
  • 847
0 votes
0 answers
53 views

Sign soap message with apache cxf

I am writing some web service endpoint in spring boot and cxf that returns soap messages. One of the requirement is to sign messages coming out from my servic using key from keytstore/trustore. The ...
adamzrk's user avatar
1 vote
1 answer
288 views

JAXB error when unmarshalling Apache CXF SOAP response after upgrading from version 2.2.11 to 2.3.0+

After upgrading the following JAXB dependencies from 2.2.11 to anything > 2.3.0 the following error occurs when unmarshalling the response: javax.xml.ws.soap.SOAPFaultException: Unmarshalling Error:...
Jurgen's user avatar
  • 347
0 votes
2 answers
260 views

Apache CXF: How to get rid of log warning "Unimplemented getRequestCharacterEncoding() - use org.eclipse.jetty.servlet.ServletContextHandler"

I am using the latest Apache CXF 4.0.1 completely standalone, no EE, no magic, just plain Kotlin code. To set up my Endpoint, I simply do this: val jettyHTTPServerEngine = prepareServerForPort(8081) ...
Zordid's user avatar
  • 10.4k
0 votes
0 answers
40 views

Why is the Apache CXF dynamic client returning null for typeClass information in certain SOAP operations?

In our software I have to provide dynamic SOAP support. For this purpose, I am using Apache CXF (version 3.5.0 since we still have to support Java 8). I followed the principles from ...
sdeigm's user avatar
  • 116
0 votes
0 answers
90 views

Apache CXF with JAX-WS - WSDL differences with Axis2 Generated WSDL

We have legacy application, uses java-first approach for SOAP webservices. We were using axis2 till now but decided to migrate to apache CXF with JAX-WS. We re-wrote the code and did necessary spring ...
kaluva's user avatar
  • 640
0 votes
0 answers
45 views

Difference in Dependency Resolution based on JDK Version in Apache CXF

I'm using Apache CXF in my project and see a difference in the dependency tree when I'm compiling using different Java Versions. How is maven or CXF controlling this change in the dependency tree ...
Raghu's user avatar
  • 909

1
2 3 4 5
110