Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-951

Tomcat 8.0 and 9.0 not compatible with Spring Boot 1.5

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • tomcat8
    • None
    • Hide

      To test SB against Tomcat 8.0:

      git clone https://github.com/spring-projects/spring-boot.git
      cd spring-boot
      git checkout v1.5.9.RELEASE
      mvn clean install -Dtomcat.version=8.0.36.redhat-24
      
      ... Fails with ...
      
      [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ spring-boot ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 307 source files to /Users/chirino/sandbox/spring-boot/spring-boot/target/classes
      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR : 
      [INFO] -------------------------------------------------------------
      [ERROR] /Users/chirino/sandbox/spring-boot/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.java:[59,34] cannot find symbol
        symbol:   class SSLHostConfig
        location: package org.apache.tomcat.util.net
      [INFO] 1 error
      

      To test SB against Tomcat 9.0:

      git clone https://github.com/spring-projects/spring-boot.git
      cd spring-boot
      git checkout v1.5.9.RELEASE
      mvn clean install -Dtomcat.version=9.0.6
      
      ... Fails with ...
      
      [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ spring-boot ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 307 source files to /Users/chirino/sandbox/t/spring-boot/spring-boot/target/classes
      [INFO] -------------------------------------------------------------
      [WARNING] COMPILATION WARNING : 
      [INFO] -------------------------------------------------------------
      [WARNING] /Users/chirino/sandbox/t/spring-boot/spring-boot/src/main/java/org/springframework/boot/logging/logback/DefaultLogbackConfiguration.java: /Users/chirino/sandbox/t/spring-boot/spring-boot/src/main/java/org/springframework/boot/logging/logback/DefaultLogbackConfiguration.java uses unchecked or unsafe operations.
      [WARNING] /Users/chirino/sandbox/t/spring-boot/spring-boot/src/main/java/org/springframework/boot/logging/logback/DefaultLogbackConfiguration.java: Recompile with -Xlint:unchecked for details.
      [INFO] 2 warnings 
      [INFO] -------------------------------------------------------------
      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR : 
      [INFO] -------------------------------------------------------------
      [ERROR] /Users/chirino/sandbox/t/spring-boot/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.java:[290,24] cannot find symbol
        symbol:   method addServletMapping(java.lang.String,java.lang.String)
        location: variable context of type org.apache.catalina.Context
      [ERROR] /Users/chirino/sandbox/t/spring-boot/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.java:[369,25] cannot find symbol
        symbol:   method setCompressableMimeType(java.lang.String)
        location: variable protocol of type org.apache.coyote.http11.AbstractHttp11Protocol<?>
      [INFO] 2 errors 
      
      Show
      To test SB against Tomcat 8.0: git clone https: //github.com/spring-projects/spring-boot.git cd spring-boot git checkout v1.5.9.RELEASE mvn clean install -Dtomcat.version=8.0.36.redhat-24 ... Fails with ... [INFO] --- maven-compiler-plugin:3.1:compile ( default -compile) @ spring-boot --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 307 source files to /Users/chirino/sandbox/spring-boot/spring-boot/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /Users/chirino/sandbox/spring-boot/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.java:[59,34] cannot find symbol symbol: class SSLHostConfig location: package org.apache.tomcat.util.net [INFO] 1 error To test SB against Tomcat 9.0: git clone https: //github.com/spring-projects/spring-boot.git cd spring-boot git checkout v1.5.9.RELEASE mvn clean install -Dtomcat.version=9.0.6 ... Fails with ... [INFO] --- maven-compiler-plugin:3.1:compile ( default -compile) @ spring-boot --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 307 source files to /Users/chirino/sandbox/t/spring-boot/spring-boot/target/classes [INFO] ------------------------------------------------------------- [WARNING] COMPILATION WARNING : [INFO] ------------------------------------------------------------- [WARNING] /Users/chirino/sandbox/t/spring-boot/spring-boot/src/main/java/org/springframework/boot/logging/logback/DefaultLogbackConfiguration.java: /Users/chirino/sandbox/t/spring-boot/spring-boot/src/main/java/org/springframework/boot/logging/logback/DefaultLogbackConfiguration.java uses unchecked or unsafe operations. [WARNING] /Users/chirino/sandbox/t/spring-boot/spring-boot/src/main/java/org/springframework/boot/logging/logback/DefaultLogbackConfiguration.java: Recompile with -Xlint:unchecked for details. [INFO] 2 warnings [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /Users/chirino/sandbox/t/spring-boot/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.java:[290,24] cannot find symbol symbol: method addServletMapping(java.lang. String ,java.lang. String ) location: variable context of type org.apache.catalina.Context [ERROR] /Users/chirino/sandbox/t/spring-boot/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.java:[369,25] cannot find symbol symbol: method setCompressableMimeType(java.lang. String ) location: variable protocol of type org.apache.coyote.http11.AbstractHttp11Protocol<?> [INFO] 2 errors

      Fuse would like to use SB 1.5.x against one of the LTS releases of JWS. Tomcat 8 or preferably 9.

        1. JWS-951.patch
          2 kB
          Coty Sutherland

              rhn-support-csutherl Coty Sutherland
              hchirino Hiram Chirino
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: