[ 
https://issues.apache.org/jira/browse/CAMEL-19305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17718655#comment-17718655
 ] 

Jeff commented on CAMEL-19305:
------------------------------

I got this working in Camel 4.0.0-M2 and Spring Boot 3 with the following 
dependencies:

 
implementation "org.apache.camel.springboot:camel-cxf-soap-starter"
implementation "org.apache.cxf:cxf-rt-transports-http-jetty:${cxfVersion}"
 
There are still warnings about the missing *CxfSpringEndpointUtils* class 
whenever a cxf endpoint is called, but it doesn't appear to affect anything.

> CXF Soap Starter does not include classes needed for CXF web service
> --------------------------------------------------------------------
>
>                 Key: CAMEL-19305
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19305
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxf, camel-spring-boot-starters
>    Affects Versions: 3.20.4
>            Reporter: Jeff
>            Priority: Major
>             Fix For: 3.20.5, 3.21.0
>
>
> After creating fresh Spring Boot project using Java 17 and adding the 
> camel-cxf-soap-starter dependency per the docs, the application fails to 
> start due to {*}java.lang.ClassNotFoundException: 
> javax.xml.soap.SOAPMessage{*}.
> Gradle build file (elided for brevity):
>  
> plugins {
> id 'java'
> id 'org.springframework.boot' version '2.7.11'
> id 'io.spring.dependency-management' version '1.1.0'
> }
> ext {
> camelVersion = '3.20.4'
> }
> dependencies {
> implementation 'org.springframework.boot:spring-boot-starter'
> implementation 
> "org.apache.camel.springboot:camel-spring-boot-starter:${camelVersion}"
> implementation 
> "org.apache.camel.springboot:camel-cxf-soap-starter:${camelVersion}"
> testImplementation 'org.springframework.boot:spring-boot-starter-test'
> testImplementation "org.apache.camel:camel-test-spring-junit5:${camelVersion}"
> }
>  
> Upgrading to Spring Boot 3 and Camel 4.0.0-M2 removes the startup error but 
> throws this error when attempting to use the CXF component in a Junit5 test:
> *java.lang.ClassNotFoundException: 
> org.apache.camel.component.cxf.spring.jaxws.CxfSpringEndpointUtils*
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to