Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-21050

Remove org.apache.tomcat.embed dependencies from cxf-spring-boot-starter-jaxrs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • fuse-7.12-GA
    • fuse-7.11.1-GA
    • CXF
    • None
    • False
    • None
    • False
    • Medium
    • % %
    • Todo
    • Workaround Exists
    • Hide
             <dependency>
                  <groupId>org.apache.cxf</groupId>
                  <artifactId>cxf-spring-boot-starter-jaxrs</artifactId>
                  <exclusions>
                      <exclusion>
                          <groupId>org.apache.tomcat.embed</groupId>
                          <artifactId>tomcat-embed-core</artifactId>
                      </exclusion>
                      <exclusion>
                          <groupId>org.apache.tomcat.embed</groupId>
                          <artifactId>tomcat-embed-el</artifactId>
                      </exclusion>
                      <exclusion>
                          <groupId>org.apache.tomcat.embed</groupId>
                          <artifactId>tomcat-embed-websocket</artifactId>
                      </exclusion>
                  </exclusions>
              </dependency>        
              <dependency>
                  <groupId>org.springframework.boot</groupId>
                  <artifactId>spring-boot-starter-undertow</artifactId>
              </dependency> 
      Show
      <dependency>             <groupId>org.apache.cxf</groupId>             <artifactId>cxf-spring-boot-starter-jaxrs</artifactId>             <exclusions>                 <exclusion>                     <groupId>org.apache.tomcat.embed</groupId>                     <artifactId>tomcat-embed-core</artifactId>                 </exclusion>                 <exclusion>                     <groupId>org.apache.tomcat.embed</groupId>                     <artifactId>tomcat-embed-el</artifactId>                 </exclusion>                 <exclusion>                     <groupId>org.apache.tomcat.embed</groupId>                     <artifactId>tomcat-embed-websocket</artifactId>                 </exclusion>             </exclusions>         </dependency>        <dependency>             <groupId>org.springframework.boot</groupId>             <artifactId>spring-boot-starter-undertow</artifactId>         </dependency>
    • Hide
      $ mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate   -DarchetypeCatalog=https://maven.repository.redhat.com/ga/io/fabric8/archetypes/archetypes-catalog/2.2.0.fuse-sb2-7_11_1-00018-redhat-00002/archetypes-catalog-2.2.0.fuse-sb2-7_11_1-00018-redhat-00002-archetype-catalog.xml   -DarchetypeGroupId=org.jboss.fuse.fis.archetypes   -DarchetypeVersion=2.2.0.fuse-sb2-7_11_1-00018-redhat-00002
      
      - Select example # 17
      
      Choose archetype:
      ...
      17: https://maven.repository.redhat.com/ga/io/fabric8/archetypes/archetypes-catalog/2.2.0.fuse-sb2-7_11_1-00018-redhat-00002/archetypes-catalog-2.2.0.fuse-sb2-7_11_1-00018-redhat-00002-archetype-catalog.xml -> org.jboss.fuse.fis.archetypes:spring-boot-cxf-jaxrs-archetype (Spring Boot CXF JAXRS example)
      ---
      Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 17
      -
      Downloading from spring-boot-cxf-jaxrs-archetype-repo: https://maven.repository.redhat.com/ga/io/fabric8/archetypes/archetypes-catalog/2.2.0.fuse-sb2-7_11_1-00018-redhat-00002/org/jboss/fuse/fis/archetypes/spring-boot-cxf-jaxrs-archetype/2.2.0.fuse-sb2-7_11_1-00018-redhat-00002/spring-boot-cxf-jaxrs-archetype-2.2.0.fuse-sb2-7_11_1-00018-redhat-00002.jar
      ...
      Define value for property 'groupId': : org.example
      Define value for property 'artifactId': : spring-boot-cxf-jaxrs
      Define value for property 'version':  1.0-SNAPSHOT: : 
      Define value for property 'package':  org.example: : 
      Confirm properties configuration:
      groupId: org.example
      artifactId: spring-boot-cxf-jaxrs
      version: 1.0-SNAPSHOT
      package: org.example
       Y: : Y
      
      

       

      Show
      $ mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeCatalog=https: //maven.repository.redhat.com/ga/io/fabric8/archetypes/archetypes-catalog/2.2.0.fuse-sb2-7_11_1-00018-redhat-00002/archetypes-catalog-2.2.0.fuse-sb2-7_11_1-00018-redhat-00002-archetype-catalog.xml -DarchetypeGroupId=org.jboss.fuse.fis.archetypes -DarchetypeVersion=2.2.0.fuse-sb2-7_11_1-00018-redhat-00002 - Select example # 17 Choose archetype: ... 17: https: //maven.repository.redhat.com/ga/io/fabric8/archetypes/archetypes-catalog/2.2.0.fuse-sb2-7_11_1-00018-redhat-00002/archetypes-catalog-2.2.0.fuse-sb2-7_11_1-00018-redhat-00002-archetype-catalog.xml -> org.jboss.fuse.fis.archetypes:spring-boot-cxf-jaxrs-archetype (Spring Boot CXF JAXRS example) --- Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 17 - Downloading from spring-boot-cxf-jaxrs-archetype-repo: https: //maven.repository.redhat.com/ga/io/fabric8/archetypes/archetypes-catalog/2.2.0.fuse-sb2-7_11_1-00018-redhat-00002/org/jboss/fuse/fis/archetypes/spring-boot-cxf-jaxrs-archetype/2.2.0.fuse-sb2-7_11_1-00018-redhat-00002/spring-boot-cxf-jaxrs-archetype-2.2.0.fuse-sb2-7_11_1-00018-redhat-00002.jar ... Define value for property 'groupId' : : org.example Define value for property 'artifactId' : : spring-boot-cxf-jaxrs Define value for property 'version' : 1.0-SNAPSHOT: : Define value for property ' package ' : org.example: : Confirm properties configuration: groupId: org.example artifactId: spring-boot-cxf-jaxrs version: 1.0-SNAPSHOT package : org.example Y: : Y  
    • Very Likely

      Remove org.apache.tomcat.embed dependencies from cxf-spring-boot-starter-jaxrs for the next FUSE 7.x release.

              <dependency>
                  <groupId>org.apache.cxf</groupId>
                  <artifactId>cxf-spring-boot-starter-jaxrs</artifactId>
                  <exclusions>
                      <exclusion>
                          <groupId>org.springframework.boot</groupId>
                          <artifactId>spring-boot-starter-tomcat</artifactId>
                      </exclusion>
                  </exclusions>
              </dependency>
      
              <dependency>
                  <groupId>org.springframework.boot</groupId>
                  <artifactId>spring-boot-starter-undertow</artifactId>
              </dependency> 

      The server still start as tomcat. 

       

       

            yfang@redhat.com Freeman(Yue) Fang
            rhn-support-whui Roger Hui
            Federico Mariani Federico Mariani
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: