Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
21 views

JAXP09020005: The specified argument 'classpath:/schemas/wsdl' (case sensitive) for 'setRewritePrefix' is not valid

We use jakarta.xml.ws.Provider class (lib version:4.0.2) in our project. This class chooses the com.sun.xml.ws.spi.ProviderImpl class as the provider, which is related to com.sun.xml:jaxws-rt library (...
F Goli's user avatar
  • 13
0 votes
1 answer
40 views

Migration from org.apache.cxf.jaxrs.swagger -> org.apache.cxf.jaxrs.openapi

After up Spring Boot to version 3 I try to migrate from Swagger to OpenAPI. Project depends on Apache CXF. How can I rewrite the swagger configuration? It was before OpenApi: @Configuration public ...
fletcher_lind's user avatar
0 votes
0 answers
14 views

Unable to locate Spring NamespaceHandler for XML schema namespace [http://cxf.apache.org/jaxws] in wildfly27

i get the following error when running wildfly: 17:22:01,520 ERROR [org.springframework.web.context.ContextLoader](ServerService Thread Pool -- 51) Context initialization failed:org.springframework....
Lilach Hyman Papis's user avatar
0 votes
0 answers
10 views

Upgrading org.apache.cxf.jaxrs.swagger.Swagger2Feature to user jakarta

I am upgrading an old java service to java 17 and I noticed that it uses org.apache.cxf.jaxrs.swagger.Swagger2Feature in version 3.6.4. The problem with this is that the class Swagger2Feature uses ...
carlos palma's user avatar
0 votes
0 answers
19 views

Quarkus-cxf - java.lang.IllegalStateException: start tag has already been written

I have an application with Quarkus (3.8.5, jdk-21) which needs to get xml-data by SOAP. For this reason i have a wsdl and a couple of xsd-files, which I'm not realy allowed to modify. Now I am trying ...
Konrad's user avatar
  • 1
-1 votes
0 answers
22 views

Can we inject HttpServletRequest in application context file in spring jax-rs implementation

I am working on an application where I want to add custom authentication annotation to the service impl methods. Since i am using jax-rs and custom authentication cannot be applied at the controller ...
user2594's user avatar
  • 406
0 votes
0 answers
18 views

Apache CXF doesn't mask attributes of xml tag while sending request

I'm sending Rest request with xml in it using CXF. I want to hide fields with this code Set<String> FIELD_NAMES = new HashSet<String>() {{ add("fieldToMask"); }}; ...
Ant's user avatar
  • 1
0 votes
0 answers
92 views

codecentric cxf spring boot starter plugin with jdk17

I'm migrating a spring boot service from version 2.x.x and java 8 to spring boot v3.3.1 and java 17. The main problem is that the cxf-spring-boot-starter-maven-plugin generates deprecated javax ...
Thomas Meyer's user avatar
-1 votes
1 answer
30 views

Performance SOAPHandler handleMessage

I want to log all Request / Response data of a WS communication. I must do the logging (its more dumping the data into a RDBMS) asynchronous to not affect the performance of the WS communication ...
Olli's user avatar
  • 729
0 votes
0 answers
48 views

Difficulties in Axis 1 to Axis 2 Migration progress

I'm currently migrating an Axis 1 SOAP request to an Apache Axis2 SOAP request in a Spring project. Previously, I used Axis 1 to convert a WSDL file into Java class files. However, in Axis 2, the ...
julymeltdown's user avatar
0 votes
0 answers
38 views

Error System.ServiceModel.Security.MessageSecurityException: No signature message parts were specified for messages with the '' action

Description: A 3rd party application based on C# connects with our Java application. The application was recently migrated to Java 11 from Java 8 and uses Apache CXF version 3.6.1. The error started ...
vedant mehra's user avatar
0 votes
0 answers
51 views

How to set System variable in a Java app?

I saw an article which suggested me to use--- Only by setting the default JAXB provider to be the glassfish implementation by setting the system property: jakarta.xml.bind.JAXBContextFactory=org....
Alok Kumar's user avatar
0 votes
1 answer
233 views

Error property "eclipselink.default-target-namespace" is not supported when eclipselink is on the classpath

I am getting the error "eclipselink.default-target-namespace" is not supported when eclipselink is on the classpath. I found an article https://issues.apache.org/jira/browse/CXF-8960 There ...
Alok Kumar's user avatar
0 votes
0 answers
25 views

Restrict number of concurrent consumers on shared JMS queue

I have multiple CXF web services consuming messages from the same JMS queue based on message selectors. It is not ideal but it works and I am not going to challenge that. For performance reasons, I'd ...
Stov's user avatar
  • 13
3 votes
0 answers
97 views

Understanding Timeout Behavior in Java JDK HttpClient

I've been working with Apache CXF and noticed a change in how timeouts are handled in the newer versions (3.6.x and 4.x). These versions now use the new JDK HttpClient, and I’m trying to verify my ...
Joe23's user avatar
  • 5,772
0 votes
0 answers
31 views

Apache CXF and ODATA

I am fairly new to Apache CXF and odata. I'm trying to implement ODATA with Apache CXF. When I try to hit the http://localhost:8080/hello I get 404 not found error. but it doesn't show any error in ...
Nismath vi's user avatar
2 votes
0 answers
294 views

java.lang.IllegalAccessError: class org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine

I got the below error when starting the spring application : java.lang.IllegalAccessError: class org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine tried to access protected method 'void org....
Jawaher Al_makhmari's user avatar
0 votes
0 answers
78 views

Preserving Operation Names and Input Requests in Apache CXF 4.0.0 Code Generation

When you make Java code from a WSDL using Apache CXF's cxf-codegen-plugin version 4.0.0, it usually makes the operation name and adds "Request" or "Response" to create the input ...
lowLatency's user avatar
  • 5,644
0 votes
0 answers
26 views

CXF Camel - WS-Security ResourceResolverException with concurrent requests

We have an integration solution running as Camel+CXF exposing SOAP services with WS-Security (signed request/response). The app is bundled as a Spring app in JBoss (Wildfly + JKD11) The service (...
gusto2's user avatar
  • 11.9k
0 votes
1 answer
205 views

CXF roadmap not clear, blocking us with adoption of Jetty 12

I have an issue with CXF (currently 4.0.4) not supporting Jetty 12 and thus blocking us to use it together with Spring Boot 3.2.0+. I tried to find what is the roadmap for their development, but it ...
Quoshak's user avatar
  • 11
0 votes
0 answers
469 views

Apache CXF - java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

I have migrated my application from Java 8 to Java 17 and upgrading corresponding dependent libraries, including javax to jakarta namespace refactor. However, I am facing issues with Apache CXF ...
Mehul's user avatar
  • 57
0 votes
1 answer
94 views

Apache CXF is unable to handle duplicate localnames

I'm trying to generate Java stubs for the new 3rd party service. It worked before with no problem but recently they have added a new method verifyDataExistence and wsdl2java got failed with the ...
engilyin's user avatar
  • 1,070
0 votes
0 answers
92 views

Avoid soap fault response (org.apache.cxf)

I am creating a SOAP service using org.apache.cxf. Everything is functioning properly: data entry, processing with business logic, and returning data are all correct. However, issues arise when the ...
Brandon's user avatar
0 votes
0 answers
112 views

Upgrade to Camel 4 causing CXF soap call to fail with "Received RST_STREAM: Stream cancelled"

we are migrating Camel from 3 to currently latest version 4.4.1. Of course all required updated were done as well, like Spring Boot 3... We are using CXF library in our route builder code to send SOAP ...
Quoshak's user avatar
  • 11
0 votes
1 answer
600 views

Getting build error when upgrading org.apache.cxf to version 4 from version 3

I have a java app which used org.apache.cxf -artifactId cxf-rt-frontend-jaxrs with version 3.3.7 but when I try to upgrade it to version 4, I am getting build errors. As earlier code used to work ...
Alok Kumar's user avatar
0 votes
1 answer
218 views

Caused by: java.lang.NoSuchFieldError: REFLECTION when upgrading cxf 3.5.5 and spring 5.3.27

Getting following error when ugrading Apache cxf from 3.4.4 to 3.5.5 and spring 5.2.22 to 5.3.27. Searched stack overflow posts and most point to jaxb versions mismatch. I have below jaxb versions: ...
Rajan's user avatar
  • 126
0 votes
0 answers
18 views

Is it possible to add a custom JAXWS generator into CXF codegen tool?

The CXF codegen tool is able to generate different classes like SEI/Port, Impl, Service, Faults, etc. (from WSDL/XSD) all through specific implementations of AbstractJAXWSGenerator and ViewMaker ...
Xavier Dury's user avatar
  • 1,571
0 votes
0 answers
44 views

No value for key "javax.xml.ws.wsdl.service" on org.apache.cxf.binding.soap.SoapMessage with camel version 3.17.0 and cxf 3.5.5

In my legacy project I had to upgrade camel dependency org.apache.camel.springboot::camel-spring-boot-bom from version 3.7.4 to 3.17.0 and org.apache.cxf::cxf-bom from version 3.4.2 to 3.5.5. With the ...
Splioo's user avatar
  • 492
0 votes
1 answer
75 views

CXF web service deployed with docker compose won't work

After several years of using spring/spring boot/spring cloud. I've decided to learn from basic the Jakarta EE I have CXF basic JAXRS web service with dummy api that work locally via CLI (java -jar my-...
Shay Zambrovski's user avatar
0 votes
0 answers
30 views

Is there a practical way to find out which type causes "java.lang.InternalError: unresolved reference" with apache-cxf wsdl2java?

I was trying to generate client classes for https://www.onvif.org/ver10/deviceio.wsdl with wsdl2java and got the following: Exception in thread "main" java.lang.InternalError: unresolved ...
Hong's user avatar
  • 18.4k
0 votes
0 answers
103 views

Microservices Java Web Application RunTime Issue after upgrading to Java17

These are my Error Tomcat Logs for my Java Spring Framework Application . 31-Jan-2024 23:11:52.339 INFO [main] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types ...
Ranseur's user avatar
  • 11
0 votes
0 answers
186 views

WELD-001524: Unable to load proxy class for bean org.apache.cxf.cdi.ContextProducerBean

I am migrating Java web service from Java 8 to Jdk- 21. I was able to migrate everything but I have a problem with "cxf-integration-cdi.jar". I have weld-shaded.jar in my "WEB-INF\lib&...
Vinodini Thambudurairaj's user avatar
-1 votes
1 answer
289 views

Importing XSD into WSDL error in target namespace

Using wsdl2java from Apache CXF 4.0.3 I'm running into an error when trying to import XSD into my WSDL file. The files come from a 3rd party and with earlier versions of CXF the imports were working. ...
Tim's user avatar
  • 4,763
0 votes
1 answer
178 views

How to get response body if server send status 400/500

I need to implement a web service client for a third-party web service. Unfortunately the web service operator decided to send a HTTP status code 400 if a "normal" fault occurred. That means ...
Martin Fernau's user avatar
0 votes
0 answers
22 views

Not able to send image over the SOAP service

I want to send a image over the SOAP service I connect with so that it sends the email to the customer with the attachment as image. I'm given the below interface to send: <uploadedFile> <...
darthwader's user avatar
0 votes
0 answers
38 views

Adding a Feature to a CXF Client after creating the web service port

I've created the Java classes using wsdl2java from my wsdl file. On client side I'm going to create the port (on which I can call the web service) this way // Creating Service Class MyServiceService ...
Martin Fernau's user avatar
1 vote
0 answers
73 views

Swagger and swagger ui with spring boot jaxrs and apache cxf

Recently my organization took an app that was not originally a spring app, jammed some part sof spring into it, and then migrated the app to docker and kubernetes, prior to this our swagger ui was ...
Jeff Mitchell's user avatar
0 votes
0 answers
40 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
1 answer
33 views

error logging issue: java restful application using cxf-jaxrs with log4j2 not printing the error and exception stacktrace to file after migrating cxf

After tried to upgrade cxf & log4j2 versions in our spring java application; cxf from 2 -> 3.1 & log4j 1.x -> 2.x; the logging is broken. Rolling file appender & smtp appenders doesn'...
Diablo's user avatar
  • 501
0 votes
0 answers
30 views

Unable to generate Swagger2Feature API using JAX-RS API

i am trying to use APACHE CXF swagger2feature support for API documentation. following is the beans.xml configuration and web.xml file. there are 3 server endpoints documentation needed. thus i have ...
Sandeep Prajapati's user avatar
0 votes
0 answers
103 views

DataHandler to be passed a Base64 image string in Java apache.cxf

I have a byte[] image that I converted to Base64 string. I then need to send this image over to a SOAP service as request payload below which is the signature. How do I send this in the DataHandler? ...
darthwader's user avatar
0 votes
1 answer
52 views

Aache-CXF WS client with eclipse MOXY JAXBContextFactory doesn't send security header

I use Apache-CXF WS for SOAP client. Side SOAP endpoint has security (username/password) requirement. Also I use org.eclipse.persistence.eclipselink for changing an JAXBContextFactory, because default ...
Igor Shcherbachenya's user avatar
0 votes
1 answer
311 views

jakarta.servlet.ServletException: At least one resource class should be specified at org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet

Trying to upgrade to corretto-Java17, Tomcat 10.1.16/10.1.17 . I have moved all javax package to jakarta package, upgraded spring to version6 and cxf to version-4.When I deployed my application in ...
user3778690's user avatar
0 votes
0 answers
346 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
45 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
34 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
987 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,382
0 votes
1 answer
249 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
36 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
50 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

1
2 3 4 5
110