title: What dependencies do I need to run Apache CXF with Spring Boot on Java 11?
body: <p>This is driving me nuts. We are trying to use Java 11 with Spring Boot (to self host) and Apache CXF (for code-first SOAP development). </p>
  
  <p>Is this combination just not possible?</p>
  
  <pre><code>&lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-spring-boot-starter-jaxws&lt;/artifactId&gt;
          &lt;version&gt;3.3.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.xml.ws&lt;/groupId&gt;
          &lt;artifactId&gt;jaxws-rt&lt;/artifactId&gt;
          &lt;version&gt;2.3.2&lt;/version&gt;
          &lt;type&gt;pom&lt;/type&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;javax.activation&lt;/groupId&gt;
                  &lt;artifactId&gt;*&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.xml.bind&lt;/groupId&gt;
          &lt;artifactId&gt;jaxb-core&lt;/artifactId&gt;
          &lt;version&gt;2.3.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.xml.bind&lt;/groupId&gt;
          &lt;artifactId&gt;jaxb-impl&lt;/artifactId&gt;
          &lt;version&gt;2.3.0&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>Results in:</p>
  
  <pre><code>[ERROR] module java.xml.bind reads package javax.activation from both jakarta.activation and java.activation
  [ERROR] module java.xml.soap reads package javax.activation from both java.activation and jakarta.activation
  [ERROR] module java.xml.ws reads package javax.activation from both java.activation and jakarta.activation
  [ERROR] the unnamed module reads package javax.activation from both java.activation and jakarta.activation
  [ERROR] module spring.context reads package javax.activation from both java.activation and jakarta.activation
  [ERROR] module spring.boot.autoconfigure reads package javax.activation from both java.activation and jakarta.activation
  [ERROR] module spring.boot reads package javax.activation from both java.activation and jakarta.activation
  [ERROR] module java.annotation reads package javax.activation from both java.activation and jakarta.activation
  [ERROR] module java.activation reads package javax.activation from both java.activation and jakarta.activation
  [ERROR] module jakarta.activation reads package javax.activation from both java.activation and jakarta.activation
  [ERROR] module org.apache.cxf.core reads package javax.activation from both java.activation and jakarta.activation
  [ERROR] module org.apache.cxf.frontend.jaxws reads package javax.activation from both java.activation and jakarta.activation
  [ERROR] module spring.beans reads package javax.activation from both java.activation and jakarta.activation
  </code></pre>
  
  <p>I have been adding and removing dependencies all week. Either I end up with a class not found error, a module not found error (for my own module), or the above. If I exclude the jakarta.activation module, I get compilation errors because another module depends on it.</p>
  
  <p>Any ideas on the set of dependencies I can use to get this junk working?</p>